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