Skip to content

Commit f5b5c48

Browse files
committed
demo代理配置
1 parent 42a9068 commit f5b5c48

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pay-java-demo/src/main/java/in/egan/pay/demo/service/PayResponse.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,19 @@ public void init(ApyAccount apyAccount) {
5555
}
5656

5757
/**
58-
* 获取http配置,如果配置为null则为默认配置,无代理
58+
* 获取http配置,如果配置为null则为默认配置,无代理。
59+
* 此处非必需
5960
* @return
6061
*/
6162
public HttpConfigStorage getHttpConfigStorage(){
6263
HttpConfigStorage httpConfigStorage = new HttpConfigStorage();
64+
//http代理地址
6365
httpConfigStorage.setHttpProxyHost("192.168.1.69");
66+
//代理端口
6467
httpConfigStorage.setHttpProxyPort(3308);
68+
//代理用户名
6569
httpConfigStorage.setHttpProxyUsername("user");
70+
//代理密码
6671
httpConfigStorage.setHttpProxyPassword("password");
6772
return httpConfigStorage;
6873
}

0 commit comments

Comments
 (0)