Merge remote-tracking branch 'origin/master'

# Conflicts:
#	pay-java-demo/src/main/java/com/egzosn/pay/demo/service/PayResponse.java
This commit is contained in:
zzs
2017-04-10 09:22:51 +08:00
2 changed files with 20 additions and 2 deletions

View File

@@ -29,7 +29,7 @@
###使用
这里不多说直接上代码 集群的话,友店可能会有bug。
测试链接 http://pay.egan.in/index.html
测试链接 http://pay.egzosn.com/index.html
服务端+网页端详细使用与简单教程请看 [pay-java-demo](pay-java-demo?dir=1&filepath=pay-java-demo)

View File

@@ -48,10 +48,28 @@ public class PayResponse {
//根据不同的账户类型 初始化支付配置
this.service = apyAccount.getPayType().getPayService(apyAccount);
this.storage = service.getPayConfigStorage();
//这里设置代理配置
// service.setRequestTemplateConfigStorage(getHttpConfigStorage());
buildRouter(apyAccount.getPayId());
}
/**
* 获取http配置如果配置为null则为默认配置无代理。
* 此处非必需
* @return
*/
public HttpConfigStorage getHttpConfigStorage(){
HttpConfigStorage httpConfigStorage = new HttpConfigStorage();
//http代理地址
httpConfigStorage.setHttpProxyHost("192.168.1.69");
//代理端口
httpConfigStorage.setHttpProxyPort(3308);
//代理用户名
httpConfigStorage.setHttpProxyUsername("user");
//代理密码
httpConfigStorage.setHttpProxyPassword("password");
return httpConfigStorage;
}
/**