From 75316b10cbf19903f85a484ed049c6c45e932dd8 Mon Sep 17 00:00:00 2001 From: Mrx <18278715334@163.com> Date: Thu, 16 Apr 2026 19:32:22 +0800 Subject: [PATCH] f --- internal/shared/payment/wechatpay.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/shared/payment/wechatpay.go b/internal/shared/payment/wechatpay.go index d4d8afe..549955b 100644 --- a/internal/shared/payment/wechatpay.go +++ b/internal/shared/payment/wechatpay.go @@ -213,11 +213,10 @@ func newWechatPayServiceWithWxPayPubKey(c config.Config, logger *zap.Logger) *We panic(fmt.Sprintf("初始化失败,服务停止: %v", err)) } - // 初始化 notify.Handler - certificateVisitor := downloader.MgrInstance().GetCertificateVisitor(mchID) + // 初始化 notify.Handler(纯支付公钥验签) notifyHandler := notify.NewNotifyHandler( mchAPIv3Key, - verifiers.NewSHA256WithRSACombinedVerifier(certificateVisitor, mchPublicKeyID, *mchPublicKey)) + verifiers.NewSHA256WithRSAPubkeyVerifier(mchPublicKeyID, *mchPublicKey)) logger.Info("微信支付客户端初始化成功(微信支付公钥方式)") return &WechatPayService{