From fdf556b6460b1f5bc240a132a40ba347bcb83db4 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Thu, 4 May 2023 09:59:36 +0800 Subject: [PATCH] test --- svc/reward_commission.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/svc/reward_commission.go b/svc/reward_commission.go index 0ace202..e1a86e4 100644 --- a/svc/reward_commission.go +++ b/svc/reward_commission.go @@ -480,8 +480,9 @@ func CommFee(fee float64, opt *comm_plan.PlanOpt, types, isGoods string) (float6 if isGoods == "1" { orderBeforeRate := fee * opt.OrderBeforeRate + orderBeforeRateFirst := feeFirst * opt.OrderBeforeRate fee1 := int64(fee*1e4) - int64(orderBeforeRate*1e4) - feeFirst1 := int64(feeFirst*1e4) - int64(orderBeforeRate*1e4) + feeFirst1 := int64(feeFirst*1e4) - int64(orderBeforeRateFirst*1e4) if opt.PointType == 1 { //ε››θˆδΊ”ε…₯ fee, _ = decimal.NewFromFloat(float64(fee1) / 10000).Round(2).Float64() feeFirst, _ = decimal.NewFromFloat(float64(feeFirst1) / 10000).Round(2).Float64()