From 947c3564f7aeb14792a39709cb03288c1b082d28 Mon Sep 17 00:00:00 2001 From: hurui <177768073@qq.com> Date: Thu, 22 Feb 2024 11:03:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4diam?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/cweb/notify/TianQueController.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/cweb/src/main/java/com/cweb/notify/TianQueController.java b/cweb/src/main/java/com/cweb/notify/TianQueController.java index 8a5af9e..ab6409f 100644 --- a/cweb/src/main/java/com/cweb/notify/TianQueController.java +++ b/cweb/src/main/java/com/cweb/notify/TianQueController.java @@ -99,11 +99,21 @@ public class TianQueController { other.put("settleAmount", body.getBigDecimal("settleAmt")); } + TradeOrderPayModeEnum tradeOrderPayMode = null; + if (body.getString("payType").equals("UNIONPAY")) { + tradeOrderPayMode = TradeOrderPayModeEnum.UQRCODEPAY; + } else { + tradeOrderPayMode = TradeOrderPayModeEnum.getNameByCode(body.getString("payType")); + } + if (tradeOrderPayMode == null) { + tradeOrderPayMode = TradeOrderPayModeEnum.UNKNOWN; + } + tradeOrderService.paySuccess( body.getString("ordNo"), body.getString("sxfUuid"), PlatformTypeEnum.type5, - TradeOrderPayModeEnum.getNameByCode(body.getString("payType")), + tradeOrderPayMode, body.getBigDecimal("totalOffstAmt"), body.getString("mno"), other