We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 915f101 commit 3f3c37dCopy full SHA for 3f3c37d
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayConfig.java
@@ -449,7 +449,7 @@ private InputStream loadConfigInputStream(String configPath) throws WxPayExcepti
449
*/
450
private Object[] p12ToPem() {
451
String key = getMchId();
452
- if (StringUtils.isBlank(key)) {
+ if (StringUtils.isBlank(key) || StringUtils.isBlank(this.getKeyPath())) {
453
return null;
454
}
455
@@ -466,7 +466,7 @@ private Object[] p12ToPem() {
466
X509Certificate x509Certificate = (X509Certificate) certificate;
467
return new Object[]{privateKey, x509Certificate};
468
} catch (Exception e) {
469
- log.error("加载证书时发生异常", e);
+ log.error("加载p12证书时发生异常", e);
470
471
472
0 commit comments