This commit is contained in:
2026-01-15 16:35:23 +08:00
parent 0562725c77
commit 6850d499d6
4 changed files with 4 additions and 6 deletions

View File

@@ -35,7 +35,7 @@ Wxpay:
AppID: "wxb786749edb73eb04"
MchID: "1737653018"
MchCertificateSerialNumber: "3FAA5AA8CD9370576F6D4B927FFB5B19164B1A9E"
MchApiv3Key: "X7pL9qR2sK5mN8gT3zV6bY1cF4dH9jU2n"
MchApiv3Key: "5Gh7jK9lM2nP4qR6sT8uV0wX1yZ3aBcD"
MchPrivateKeyPath: "etc/merchant/apiclient_key.pem"
MchPublicKeyID: "PUB_KEY_ID_0117376530182026011000212363000800"
MchPublicKeyPath: "etc/merchant/pub_key.pem"

View File

@@ -34,7 +34,7 @@ Wxpay:
AppID: "wxb786749edb73eb04"
MchID: "1737653018"
MchCertificateSerialNumber: "3FAA5AA8CD9370576F6D4B927FFB5B19164B1A9E"
MchApiv3Key: "X7pL9qR2sK5mN8gT3zV6bY1cF4dH9jU2n"
MchApiv3Key: "5Gh7jK9lM2nP4qR6sT8uV0wX1yZ3aBcD"
MchPrivateKeyPath: "etc/merchant/apiclient_key.pem"
MchPublicKeyID: "PUB_KEY_ID_0117376530182026011000212363000800"
MchPublicKeyPath: "etc/merchant/pub_key.pem"

View File

@@ -207,6 +207,7 @@ var requestProcessors = map[string]func(*ApiRequestService, []byte) ([]byte, err
"IVYZ8I9J": (*ApiRequestService).ProcessIVYZ8I9JRequest,
"JRZQ7F1A": (*ApiRequestService).ProcessJRZQ7F1ARequest,
"IVYZ3P9M": (*ApiRequestService).ProcessIVYZ3P9MRequest,
"JRZQ6F2A": (*ApiRequestService).ProcessJRZQ6F2ARequest,
}
// PreprocessRequestApi 调用指定的请求处理函数
@@ -1579,7 +1580,7 @@ func (a *ApiRequestService) ProcessIVYZ3P9MRequest(params []byte) ([]byte, error
}
// ProcessJRZQ6F2ARequest 借贷申请
func (a *ApiRequestService) ProcessJRZQ6F2ARequest(ctx context.Context, params []byte) ([]byte, error) {
func (a *ApiRequestService) ProcessJRZQ6F2ARequest(params []byte) ([]byte, error) {
name := gjson.GetBytes(params, "name")
idCard := gjson.GetBytes(params, "id_card")
mobile := gjson.GetBytes(params, "mobile")

View File

@@ -197,12 +197,9 @@ func newWechatPayServiceWithWxPayPubKeyPure(c config.Config, userAuthModel model
panic(fmt.Sprintf("初始化失败,服务停止: %v", err))
}
// 纯公钥模式:只使用公钥进行验签,不注册证书下载器,不使用平台证书
// 使用 SHA256WithRSAPubkeyVerifier 直接使用公钥进行验签
notifyHandler := notify.NewNotifyHandler(
mchAPIv3Key,
verifiers.NewSHA256WithRSAPubkeyVerifier(mchPublicKeyID, *mchPublicKey))
logx.Infof("微信支付客户端初始化成功(微信支付公钥方式-纯公钥模式)")
return &WechatPayService{
config: c,