From 71de3b10eae153e86e6588f05ff6df7cee26b505 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=A8=E9=B1=BC?= Date: Sat, 21 Dec 2024 16:43:59 +0800 Subject: [PATCH] 123 --- .../web/controller/cai/app/PayController.java | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/cai/app/PayController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/cai/app/PayController.java index 833f2b04..c2647e6f 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/cai/app/PayController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/cai/app/PayController.java @@ -357,4 +357,24 @@ public class PayController { } } + + @PostMapping(value = "/trd/notify/v4") + @Operation(hidden = true) + @Log(title = "第三方支付回调V4", businessType = BusinessType.OTHER, isSaveDb = false) + @SaIgnore + public String trdNotifyUrlV4(HttpServletRequest request) { + try { + Map params = AliPayApi.toMap(request); + log.info("第三方支付回调V4:{}",JSON.toJSONString(params)); + NotifyResp notifyResp = trdPayManager.getNotifyResp(params, TrdPayTypeEnum.V4); + payManager.callBack(notifyResp.getOrderNo(),notifyResp.getTrdOrderNo(),params,notifyResp.getPayTypeEnum().name(), PayTypeEnum.TRD); + return "success"; + } catch (Exception e) { + log.error("第三方支付回调失败V4!",e); + return "failure"; + } + } + + + }