|
@@ -44,15 +44,25 @@ public class AliPayService extends PayBaseService {
|
|
|
private Pattern mobileClientParam = Pattern.compile("\\{\"queryResultUrl\".*?\"}", Pattern.CASE_INSENSITIVE);
|
|
|
|
|
|
/**
|
|
|
- * 异步回调地址
|
|
|
+ * 异步回调地址配置
|
|
|
*/
|
|
|
@Value("${payConfig.alipay.returnUrl}")
|
|
|
+ private String returnUrlConfig;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 同步回调地址配置
|
|
|
+ */
|
|
|
+ @Value("${payConfig.alipay.notifyUrl}")
|
|
|
+ private String notifyUrlConfig;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 异步回调地址
|
|
|
+ */
|
|
|
private String returnUrl;
|
|
|
|
|
|
/**
|
|
|
* 同步回调地址
|
|
|
*/
|
|
|
- @Value("${payConfig.alipay.notifyUrl}")
|
|
|
private String notifyUrl;
|
|
|
|
|
|
/**
|
|
@@ -71,8 +81,8 @@ public class AliPayService extends PayBaseService {
|
|
|
this.attach = product.getAttach();
|
|
|
this.configInit(getPayConfig(product.getGameId(), product.getPayWay()));
|
|
|
//回调地址中拼接游戏具体支付方式
|
|
|
- returnUrl += "?" + "gamePayWayId=" + attach.getGamePayWayId();
|
|
|
- notifyUrl += "?" + "gamePayWayId=" + attach.getGamePayWayId();
|
|
|
+ this.returnUrl = this.returnUrlConfig + "?" + "gamePayWayId=" + attach.getGamePayWayId();
|
|
|
+ this.notifyUrl = this.notifyUrlConfig + "?" + "gamePayWayId=" + attach.getGamePayWayId();
|
|
|
switch (product.getPayDevice()) {
|
|
|
case 1:
|
|
|
return this.pc(product);
|