支付宝支付修改
parent
f848bf9e2a
commit
6940f67264
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue