Merge branch 'tkk' into test
This commit is contained in:
@@ -51,7 +51,7 @@ public class PayController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return payService.payOrderTest(openId, map.get("orderId"), payType, IpUtil.getIpAddr(request));
|
return payService.payOrder(openId, map.get("orderId"), payType, IpUtil.getIpAddr(request));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
@@ -87,6 +87,8 @@ public class PayController {
|
|||||||
String userId = "";
|
String userId = "";
|
||||||
if (environment.equals("wx") && payType.equals("wechatPay")) {
|
if (environment.equals("wx") && payType.equals("wechatPay")) {
|
||||||
userId = TokenUtil.parseParamFromToken(token).getString("openId");
|
userId = TokenUtil.parseParamFromToken(token).getString("openId");
|
||||||
|
} else if("aliPay".equals(payType)){
|
||||||
|
userId = TokenUtil.parseParamFromToken(token).getString("openId");
|
||||||
} else {
|
} else {
|
||||||
userId = TokenUtil.parseParamFromToken(token).getString("userId");
|
userId = TokenUtil.parseParamFromToken(token).getString("userId");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user