Merge branch 'tkk' into test

This commit is contained in:
Tankaikai
2024-09-26 17:34:37 +08:00

View File

@@ -51,7 +51,7 @@ public class PayController {
}
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) {
e.printStackTrace();
}
@@ -87,6 +87,8 @@ public class PayController {
String userId = "";
if (environment.equals("wx") && payType.equals("wechatPay")) {
userId = TokenUtil.parseParamFromToken(token).getString("openId");
} else if("aliPay".equals(payType)){
userId = TokenUtil.parseParamFromToken(token).getString("openId");
} else {
userId = TokenUtil.parseParamFromToken(token).getString("userId");
}