fix(system): 修复微信支付配置中的证书路径

- 移除了不必要的 "file" 目录拼接
- 优化了私钥和证书路径的生成逻辑
This commit is contained in:
2025-09-09 16:40:57 +08:00
parent b50692f84f
commit a2b3d13571

View File

@@ -179,8 +179,8 @@ public class SettingServiceImpl extends ServiceImpl<SettingMapper, Setting> impl
final JSONObject jsonObject = JSONObject.parseObject(data.getContent()); final JSONObject jsonObject = JSONObject.parseObject(data.getContent());
final String mchId = jsonObject.getString("mchId"); final String mchId = jsonObject.getString("mchId");
final String apiclientKey = jsonObject.getString("apiclientKey"); final String apiclientKey = jsonObject.getString("apiclientKey");
final String privateKey = pathConfig.getUploadPath().concat("file").concat(apiclientKey); final String privateKey = pathConfig.getUploadPath().concat(apiclientKey);
final String apiclientCert = pathConfig.getUploadPath().concat("file").concat(jsonObject.getString("apiclientCert")); final String apiclientCert = pathConfig.getUploadPath().concat(jsonObject.getString("apiclientCert"));
final String merchantSerialNumber = jsonObject.getString("merchantSerialNumber"); final String merchantSerialNumber = jsonObject.getString("merchantSerialNumber");
final String apiV3key = jsonObject.getString("wechatApiKey"); final String apiV3key = jsonObject.getString("wechatApiKey");
if(config == null){ if(config == null){