Compare commits

..

2 Commits

Author SHA1 Message Date
王宇航 829046e131 Merge branch 'main' of https://git.mowei.com.cn/wyh/gan 2024-05-10 13:38:14 +08:00
王宇航 6940f67264 支付宝支付修改 2024-05-10 13:38:00 +08:00
1 changed files with 3 additions and 3 deletions

View File

@ -475,7 +475,7 @@ public class PayController extends BaseController
@PostMapping("/aliPay")
@ApiOperation(value = "支付宝支付", notes = "支付宝支付", httpMethod = "POST")
public AjaxResult aliPay(@RequestBody AppOrderArg appOrderArg) {
public String aliPay(@RequestBody AppOrderArg appOrderArg) {
String orderNo = KeyUtil.generateUniqueKey();
AlipayTradeCreateResponse result = null;
try {
@ -494,9 +494,9 @@ public class PayController extends BaseController
order.setCreateTime(new Date());
order.setLevel(appOrderArg.getLevel());
appOrderMapper.insertAppOrder(order);
return AjaxResult.success(result.getBody());
return result.getBody();
} else {
return AjaxResult.error(result.getMsg());
return null;
}
}
}