From 213f1de2c617ee542db0abcd016a04a83e6f8233 Mon Sep 17 00:00:00 2001 From: liangzai <2440983361@qq.com> Date: Sun, 11 May 2025 12:04:54 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E5=BE=AE=E4=BF=A1=E6=94=AF=E4=BB=98s?= =?UTF-8?q?ervice=EF=BC=8CnotifyHandler=E5=88=9D=E5=A7=8B=E5=8C=96fix?= =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E8=AF=81=E4=B9=A6=E8=AE=BF=E9=97=AE=E5=99=A8?= =?UTF-8?q?=E5=92=8C=E5=85=AC=E9=92=A5=E4=B8=80=E8=B5=B7=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/user/cmd/api/internal/service/wechatpayService.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/user/cmd/api/internal/service/wechatpayService.go b/app/user/cmd/api/internal/service/wechatpayService.go index 32fd793..68b22d9 100644 --- a/app/user/cmd/api/internal/service/wechatpayService.go +++ b/app/user/cmd/api/internal/service/wechatpayService.go @@ -137,9 +137,11 @@ func newWechatPayServiceWithWxPayPubKey(c config.Config, userAuthModel model.Use } // 初始化 notify.Handler + certificateVisitor := downloader.MgrInstance().GetCertificateVisitor(mchID) notifyHandler := notify.NewNotifyHandler( mchAPIv3Key, - verifiers.NewSHA256WithRSAPubkeyVerifier(mchPublicKeyID, *mchPublicKey)) + verifiers.NewSHA256WithRSACombinedVerifier(certificateVisitor, mchPublicKeyID, *mchPublicKey)) + logx.Infof("微信支付客户端初始化成功(微信支付公钥方式)") return &WechatPayService{ config: c.Wxpay,