diff --git a/pay-java-common/src/main/java/com/egzosn/pay/common/http/HttpRequestTemplate.java b/pay-java-common/src/main/java/com/egzosn/pay/common/http/HttpRequestTemplate.java
index bfbe3c6..c60db6d 100644
--- a/pay-java-common/src/main/java/com/egzosn/pay/common/http/HttpRequestTemplate.java
+++ b/pay-java-common/src/main/java/com/egzosn/pay/common/http/HttpRequestTemplate.java
@@ -134,11 +134,6 @@ public class HttpRequestTemplate {
*/
public CredentialsProvider createCredentialsProvider(HttpConfigStorage configStorage){
- if (StringUtils.isNotBlank(configStorage.getHttpProxyHost())) {
- //http代理地址设置
- httpProxy = new HttpHost(configStorage.getHttpProxyHost(),configStorage.httpProxyPort);;
- }
-
if (StringUtils.isBlank(configStorage.getAuthUsername())) {
return null;
@@ -185,6 +180,12 @@ public class HttpRequestTemplate {
*/
public HttpRequestTemplate setHttpConfigStorage(HttpConfigStorage configStorage) {
this.configStorage = configStorage;
+
+ if (StringUtils.isNotBlank(configStorage.getHttpProxyHost())) {
+ //http代理地址设置
+ httpProxy = new HttpHost(configStorage.getHttpProxyHost(),configStorage.httpProxyPort);;
+ }
+
return this;
}
diff --git a/pom.xml b/pom.xml
index 46601ca..6e87beb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -121,7 +121,7 @@
utf-8
-
+
\ No newline at end of file