This commit is contained in:
2025-11-20 13:37:44 +08:00
parent 02c8ace29b
commit d7c5a67274
7 changed files with 49 additions and 72 deletions

View File

@@ -137,10 +137,10 @@ func newWechatPayServiceWithWxPayPubKey(c config.Config, userAuthModel model.Use
}
// 初始化 notify.Handler
// 使用微信支付公钥方式时,使用 NewSHA256WithRSAPubkeyVerifier
certificateVisitor := downloader.MgrInstance().GetCertificateVisitor(mchID)
notifyHandler := notify.NewNotifyHandler(
mchAPIv3Key,
verifiers.NewSHA256WithRSAPubkeyVerifier(mchPublicKeyID, *mchPublicKey))
verifiers.NewSHA256WithRSACombinedVerifier(certificateVisitor, mchPublicKeyID, *mchPublicKey))
logx.Infof("微信支付客户端初始化成功(微信支付公钥方式)")
return &WechatPayService{