mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-04-23 23:58:44 +08:00
微信支付计算精度问题 #248
This commit is contained in:
parent
00a197a130
commit
06e4dda310
@ -884,7 +884,7 @@ public class WxMpServiceImpl implements WxMpService {
|
||||
packageParams.put("mch_id", wxMpConfigStorage.getPartnerId());
|
||||
packageParams.put("body", body);
|
||||
packageParams.put("out_trade_no", outTradeNo);
|
||||
packageParams.put("total_fee", (int) (amt * 100) + "");
|
||||
packageParams.put("total_fee", String.format("%.0f", amt * 100));
|
||||
packageParams.put("spbill_create_ip", ip);
|
||||
packageParams.put("notify_url", callbackUrl);
|
||||
packageParams.put("trade_type", tradeType);
|
||||
|
Loading…
Reference in New Issue
Block a user