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{