Forráskód Böngészése

refactor: createClientForProfile也去掉证书条件判断,统一证书模式

alphaH 1 napja
szülő
commit
c1a9784c6f

+ 2 - 1
java/src/main/java/com/payment/platform/core/alipay/AlipayClientFactory.java

@@ -203,7 +203,8 @@ public class AlipayClientFactory {
                 profile.getServerUrl(), profile.getFormat(), profile.getCharset(), profile.getSignType());
 
         // 证书模式: 若有证书内容则设置(优先级高于公钥)
-        if (profile.getAppCertContent() != null && !profile.getAppCertContent().isBlank()) {
+        // 资金类接口统一使用公钥证书模式
+        if (true) {
             config.setAppCertContent(profile.getAppCertContent());
             config.setAlipayPublicCertContent(profile.getAlipayPublicCertContent());
             config.setRootCertContent(profile.getRootCertContent());