mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
🎨 【微信支付】修复证书私钥问题
This commit is contained in:
committed by
Binary Wang
parent
2e3865fd21
commit
fe5430ee65
@@ -263,6 +263,9 @@ public class WxPayConfig {
|
||||
throw new WxPayException("请确保apiV3Key值已设置");
|
||||
}
|
||||
|
||||
if(StringUtils.isNotBlank(this.getPrivateKeyString())){
|
||||
this.setPrivateKeyString(Base64.getEncoder().encodeToString(this.getPrivateKeyString().getBytes()));
|
||||
}
|
||||
InputStream keyInputStream = this.loadConfigInputStream(this.getPrivateKeyString(), this.getPrivateKeyPath(),
|
||||
this.privateKeyContent, "privateKeyPath");
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user