1
0
mirror of synced 2025-12-17 04:43:15 +08:00

🎨 #3738 【微信支付】修复V3新商户完全公钥模式下publicKey为空的问题

This commit is contained in:
Copilot
2025-11-28 11:20:51 +08:00
committed by GitHub
parent 1da6cf56ff
commit f6d9e8ba4d

View File

@@ -377,6 +377,9 @@ public class WxPayConfig {
Verifier certificatesVerifier;
if (this.fullPublicKeyModel) {
// 使用完全公钥模式时只加载公钥相关配置避免下载平台证书使灰度切换无法达到100%覆盖
if (publicKey == null) {
throw new WxPayException("完全公钥模式下请确保公钥配置publicKeyPath/publicKeyString/publicKeyContent及publicKeyId已设置");
}
certificatesVerifier = VerifierBuilder.buildPublicCertVerifier(this.publicKeyId, publicKey);
} else {
certificatesVerifier = VerifierBuilder.build(