diff --git a/app/main/api/etc/main.dev.yaml b/app/main/api/etc/main.dev.yaml index 0144494..549e5c8 100644 --- a/app/main/api/etc/main.dev.yaml +++ b/app/main/api/etc/main.dev.yaml @@ -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" diff --git a/app/main/api/etc/main.yaml b/app/main/api/etc/main.yaml index bb14eb3..a72b1f6 100644 --- a/app/main/api/etc/main.yaml +++ b/app/main/api/etc/main.yaml @@ -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" diff --git a/app/main/api/internal/service/apirequestService.go b/app/main/api/internal/service/apirequestService.go index 78310ee..fdfd236 100644 --- a/app/main/api/internal/service/apirequestService.go +++ b/app/main/api/internal/service/apirequestService.go @@ -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") diff --git a/app/main/api/internal/service/wechatpayService.go b/app/main/api/internal/service/wechatpayService.go index 329414b..b966168 100644 --- a/app/main/api/internal/service/wechatpayService.go +++ b/app/main/api/internal/service/wechatpayService.go @@ -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,