🎨 #3242 【微信支付】修改自动更新证书接口地址,使用WxPayConfig设置的payBaseUrl

This commit is contained in:
96XL
2024-03-04 16:15:23 +08:00
committed by GitHub
parent b87afb64c9
commit 573f0f5e6f
2 changed files with 11 additions and 8 deletions

View File

@@ -278,7 +278,7 @@ public class WxPayConfig {
AutoUpdateCertificatesVerifier certificatesVerifier = new AutoUpdateCertificatesVerifier(
new WxPayCredentials(mchId, new PrivateKeySigner(certSerialNo, merchantPrivateKey)),
this.getApiV3Key().getBytes(StandardCharsets.UTF_8), this.getCertAutoUpdateTime(), wxPayHttpProxy);
this.getApiV3Key().getBytes(StandardCharsets.UTF_8), this.getCertAutoUpdateTime(), this.getPayBaseUrl(), wxPayHttpProxy);
WxPayV3HttpClientBuilder wxPayV3HttpClientBuilder = WxPayV3HttpClientBuilder.create()
.withMerchant(mchId, certSerialNo, merchantPrivateKey)