支付宝支付修改

main
王宇航 2024-05-10 13:38:00 +08:00
parent f848bf9e2a
commit 6940f67264
1 changed files with 3 additions and 3 deletions

View File

@ -464,7 +464,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 {
@ -483,9 +483,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;
}
}