File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -281,15 +281,13 @@ public CloseableHttpClient initApiV3HttpClient() throws WxPayException {
281281 merchantPrivateKey = PemUtils .loadPrivateKey (keyInputStream );
282282
283283 }
284- if (certificate == null ) {
284+ if (certificate == null && StringUtils . isBlank ( this . getCertSerialNo ()) ) {
285285 InputStream certInputStream = this .loadConfigInputStream (this .getPrivateCertString (), this .getPrivateCertPath (),
286286 this .privateCertContent , "privateCertPath" );
287287 certificate = PemUtils .loadCertificate (certInputStream );
288- }
289-
290- if (StringUtils .isBlank (this .getCertSerialNo ())) {
291288 this .certSerialNo = certificate .getSerialNumber ().toString (16 ).toUpperCase ();
292289 }
290+
293291 //构造Http Proxy正向代理
294292 WxPayHttpProxy wxPayHttpProxy = getWxPayHttpProxy ();
295293
You can’t perform that action at this time.
0 commit comments