File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -345,7 +345,7 @@ public CloseableHttpClient initApiV3HttpClient() throws WxPayException {
345345 }
346346
347347 // 加载api私钥
348- if (merchantPrivateKey == null && StringUtils .isNotBlank (this .getPrivateKeyPath ())) {
348+ if (merchantPrivateKey == null && ( StringUtils .isNotBlank (this .getPrivateKeyPath ()) || StringUtils . isNotBlank ( this . getPrivateKeyString ()) || StringUtils . isNotBlank ( this . privateKeyContent ))) {
349349 try (InputStream keyInputStream = this .loadConfigInputStream (this .getPrivateKeyString (), this .getPrivateKeyPath (),
350350 this .privateKeyContent , "privateKeyPath" )) {
351351 merchantPrivateKey = PemUtils .loadPrivateKey (keyInputStream );
You can’t perform that action at this time.
0 commit comments