优化微信支付接口

This commit is contained in:
dingzhiwei 2021-11-20 06:30:31 +08:00
parent 7ae96bb395
commit 2545132b3e
2 changed files with 2 additions and 1 deletions

View File

@ -75,6 +75,7 @@ public class WxServiceWrapper {
wxPayConfig.setApiV3Key(apiV3Key);
wxPayConfig.setCertSerialNo(serialNo);
wxPayConfig.setKeyPath(channelCertConfigKitBean.getCertFilePath(cert));
wxPayConfig.setPrivateCertPath(channelCertConfigKitBean.getCertFilePath(cert));
wxPayConfig.setPrivateKeyPath(channelCertConfigKitBean.getCertFilePath(apiClientKey));
}

View File

@ -37,7 +37,7 @@ public class ChannelCertConfigKitBean {
// 以下为 文件不存在的处理方式
// 是否本地存储
boolean isLocalSave = OssServiceTypeEnum.LOCAL.equals(ossYmlConfig.getOss().getServiceType());
boolean isLocalSave = OssServiceTypeEnum.LOCAL.getServiceName().equals(ossYmlConfig.getOss().getServiceType());
// 本地存储 & 文件不存在
if(isLocalSave){