From d295c7e6469053853a41ca65d7d0625ffd2d8bab Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Mon, 18 Nov 2024 14:32:27 +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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/consume/yibao_order_share_money_mall.go b/consume/yibao_order_share_money_mall.go index 147a4e2..d258429 100644 --- a/consume/yibao_order_share_money_mall.go +++ b/consume/yibao_order_share_money_mall.go @@ -120,10 +120,12 @@ func fbShare(eg *xorm.Engine, dbName string, payMethod int, total float64, payOi req3 := map[string]string{} req3["key"] = utils.SerializeStr(key) req3["bili"] = utils.Float64ToStr(bili) + total = float64(int64((total-fee)*100)) / 100 + var tmp = model.YibaoShareMoney{ Oid: utils.OrderUUID(uid), PayOid: payOid, - StoreMoney: utils.Float64ToStr(total - total*allBili), + StoreMoney: utils.Float64ToStr(total), ZhiyingMoney: utils.Float64ToStr(fee), Platform: "mall", PayMethod: utils.IntToStr(payMethod), @@ -170,7 +172,7 @@ func fbShare(eg *xorm.Engine, dbName string, payMethod int, total float64, payOi { "account_id": "", "account_type": "2", - "share_amount": total - fee, + "share_amount": total, "remark": "商户分账", }, }