fix: 微信支付问题修复,bug。
This commit is contained in:
@@ -52,7 +52,7 @@ public class WxPayConfiguration {
|
|||||||
|
|
||||||
// 私钥配置:优先使用privateContent,避免文件不存在的问题
|
// 私钥配置:优先使用privateContent,避免文件不存在的问题
|
||||||
if (wxPayProperties.getPrivateContent() != null && !wxPayProperties.getPrivateContent().isEmpty()) {
|
if (wxPayProperties.getPrivateContent() != null && !wxPayProperties.getPrivateContent().isEmpty()) {
|
||||||
payConfig.setPrivateCertContent(wxPayProperties.getPrivateContent().getBytes());
|
payConfig.setPrivateKeyContent(wxPayProperties.getPrivateContent().getBytes(java.nio.charset.StandardCharsets.UTF_8));
|
||||||
log.info("使用私钥内容配置");
|
log.info("使用私钥内容配置");
|
||||||
} else if (wxPayProperties.getPrivateKeyPath() != null) {
|
} else if (wxPayProperties.getPrivateKeyPath() != null) {
|
||||||
payConfig.setPrivateKeyPath(wxPayProperties.getPrivateKeyPath());
|
payConfig.setPrivateKeyPath(wxPayProperties.getPrivateKeyPath());
|
||||||
|
|||||||
Reference in New Issue
Block a user