From 494f28afe89e0d7dce375a97ad625d4fcb72936d Mon Sep 17 00:00:00 2001 From: hurui <177768073@qq.com> Date: Fri, 7 Jul 2023 15:22:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/api/controller/v1/NotifyController.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/open-api/src/main/java/com/api/controller/v1/NotifyController.java b/open-api/src/main/java/com/api/controller/v1/NotifyController.java index fb075f6..175ae57 100644 --- a/open-api/src/main/java/com/api/controller/v1/NotifyController.java +++ b/open-api/src/main/java/com/api/controller/v1/NotifyController.java @@ -61,6 +61,16 @@ public class NotifyController { other.put("acc_trade_no", body.getString("acc_trade_no")); other.put("card_type", body.getString("card_type")); + if (body.getString("acc_settle_amount") != null) { + other.put("acc_settle_amount", body.getBigDecimal("acc_settle_amount").divide(new BigDecimal("100"))); + } + if (body.getString("acc_discount_amount") != null) { + other.put("acc_discount_amount", body.getBigDecimal("acc_discount_amount").divide(new BigDecimal("100"))); + } + if (body.getString("acc_mdiscount_amount") != null) { + other.put("acc_mdiscount_amount", body.getBigDecimal("acc_mdiscount_amount").divide(new BigDecimal("100"))); + } + tradeOrderService.paySuccess( body.getString("out_trade_no"), body.getString("trade_no"),