From 02c91dee8fb804ce33f2b1845da843993e43c0b6 Mon Sep 17 00:00:00 2001
From: goupan <goupan@chinapopin.com>
Date: 星期日, 28 四月 2024 19:48:35 +0800
Subject: [PATCH] 修改bug

---
 rest/src/main/java/cn/stylefeng/rest/ijpay/controller/WxPayController.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/rest/src/main/java/cn/stylefeng/rest/ijpay/controller/WxPayController.java b/rest/src/main/java/cn/stylefeng/rest/ijpay/controller/WxPayController.java
index ee3f4b2..df0e19e 100644
--- a/rest/src/main/java/cn/stylefeng/rest/ijpay/controller/WxPayController.java
+++ b/rest/src/main/java/cn/stylefeng/rest/ijpay/controller/WxPayController.java
@@ -205,7 +205,7 @@
 		if (WxPayKit.verifyNotify(params, WxPayApiConfigKit.getWxPayApiConfig().getPartnerKey(), SignType.MD5)) {
 			if (WxPayKit.codeIsOk(returnCode)) {
 				// 参数文档: https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_7&index=8
-				String totalFee = params.get("total_fee");
+				String totalFee = new BigDecimal(params.get("total_fee")).divide(BigDecimal.valueOf(100)).toString();
 				String transactionId = params.get("transaction_id");
 				// 获取订单号
 				String orderNo = params.get("out_trade_no");

--
Gitblit v1.7.1