提交 61938283 authored 作者: huningning's avatar huningning

调整支付回传数据格式

上级 d8121290
...@@ -29,18 +29,19 @@ public class PayNotifyController { ...@@ -29,18 +29,19 @@ public class PayNotifyController {
@ApiOperation(value = "用户支付完成回调接口", notes = " <br>By:许建科") @ApiOperation(value = "用户支付完成回调接口", notes = " <br>By:许建科")
@RequestMapping(value = "/userPayNotify", method = RequestMethod.POST) @RequestMapping(value = "/userPayNotify", method = RequestMethod.POST)
public Result<Object> userPayNotify(@RequestBody NotifyParam notify) { public Result<Object> userPayNotify(@RequestBody String notify) {
// public Result<Object> userPayNotify(@RequestBody NotifyParam notify) {
log.info("用户支付完成回调接口 传参 {}", notify); log.info("用户支付完成回调接口 传参 {}", notify);
if (Objects.isNull(notify) || Objects.isNull(notify.getCode()) || Objects.isNull(notify.getAction())) { // if (Objects.isNull(notify) || Objects.isNull(notify.getCode()) || Objects.isNull(notify.getAction())) {
return new Result<>(); // return new Result<>();
} // }
if (notify.getCode() != 0) { // if (notify.getCode() != 0) {
// 支付失败处理 // // 支付失败处理
log.info("唯一id {}", notify.getOrderNo()); // log.info("唯一id {}", notify.getOrderNo());
} else { // } else {
// 支付支付成功处理 // // 支付支付成功处理
log.info("唯一id {}", notify.getOrderNo()); // log.info("唯一id {}", notify.getOrderNo());
} // }
Result<Object> ret = new Result<>(); Result<Object> ret = new Result<>();
return ret; return ret;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论