diff --git a/svc/reward_commission.go b/svc/reward_commission.go index 295fc5c..6458b08 100644 --- a/svc/reward_commission.go +++ b/svc/reward_commission.go @@ -479,10 +479,10 @@ func CommFee(fee float64, opt *comm_plan.PlanOpt, types, isGoods string) (float6 if isGoods == "1" { orderBeforeRate := fee * opt.OrderBeforeRate + fee1 := int64(fee*1e4) - int64(orderBeforeRate*1e4) if opt.PointType == 1 { //ε››θˆδΊ”ε…₯ - fee = zhios_order_relate_utils.FloatFormat(orderBeforeRate, 2) + fee = zhios_order_relate_utils.FloatFormat(float64(fee1)/1e4, 2) } else { - fee1 := int64(fee*1e4) - int64(orderBeforeRate*1e4) fee = float64(int64(float64(fee1)/100)) / 100 } }