增加支付宝 QR 支付的回调

This commit is contained in:
YunaiV
2021-11-03 09:05:04 +08:00
parent 696e94a1a3
commit aa77eb029f
3 changed files with 21 additions and 2 deletions

View File

@ -51,11 +51,25 @@ public class PayOrderController {
// ========== 支付渠道的回调 ==========
@PostMapping("/notify/wx-pub/{channelId}")
@ApiOperation("通知微信公众号的结果")
@ApiOperation("通知微信公众号支付的结果")
public String notifyWxPayOrder(@PathVariable("channelId") Long channelId,
@RequestBody String xmlData) throws Exception {
payOrderCoreService.notifyPayOrder(channelId, PayChannelEnum.WX_PUB.getCode(), xmlData);
return "success";
}
@PostMapping("/notify/alipay-qr/{channelId}")
@ApiOperation("通知支付宝扫码支付的结果")
public String notifyAlipayQrPayOrder(@PathVariable("channelId") Long channelId,
@RequestBody String data) {
return "success";
}
@RequestMapping("/notify/test")
@ApiOperation("通知的测试接口")
public String notifyTest() {
// System.out.println(data);
return "success";
}
}