From c06fe5b0326d0f82aa52bc8d8f7b5ae5f5d8aa5f Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Mon, 18 Nov 2024 14:14:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- consume/yibao_order_share_money_mall.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/consume/yibao_order_share_money_mall.go b/consume/yibao_order_share_money_mall.go index 96a02b3..147a4e2 100644 --- a/consume/yibao_order_share_money_mall.go +++ b/consume/yibao_order_share_money_mall.go @@ -116,6 +116,7 @@ func fbShare(eg *xorm.Engine, dbName string, payMethod int, total float64, payOi if fee < 0.01 { fee = 0 } + fee = float64(int64(fee*100)) / 100 req3 := map[string]string{} req3["key"] = utils.SerializeStr(key) req3["bili"] = utils.Float64ToStr(bili) @@ -123,7 +124,7 @@ func fbShare(eg *xorm.Engine, dbName string, payMethod int, total float64, payOi Oid: utils.OrderUUID(uid), PayOid: payOid, StoreMoney: utils.Float64ToStr(total - total*allBili), - ZhiyingMoney: utils.Float64ToStr(total * bili), + ZhiyingMoney: utils.Float64ToStr(fee), Platform: "mall", PayMethod: utils.IntToStr(payMethod), Param: utils.SerializeStr(req3),