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": "商户分账", }, }