mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-09-21 02:58:09 +08:00
修复代理没有设置时会存在的问题
This commit is contained in:
@@ -515,8 +515,10 @@ public class WxMpServiceImpl implements WxMpService {
|
||||
apacheHttpClientBuilder.sslConnectionSocketFactory(sslsf);
|
||||
}
|
||||
|
||||
this.httpProxy = new HttpHost(this.configStorage.getHttpProxyHost(),
|
||||
this.configStorage.getHttpProxyPort());
|
||||
if (this.configStorage.getHttpProxyHost() != null && this.configStorage.getHttpProxyPort() > 0) {
|
||||
this.httpProxy = new HttpHost(this.configStorage.getHttpProxyHost(), this.configStorage.getHttpProxyPort());
|
||||
}
|
||||
|
||||
this.httpClient = apacheHttpClientBuilder.build();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user