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"),