From f59eb6cf15b10009b6a7da63db83fcb43099a5ea Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Mon, 21 Nov 2022 11:49:20 +0800 Subject: [PATCH] =?UTF-8?q?add=20reverse:for=20v3.8.4=20=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- svc/reward_commission.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/svc/reward_commission.go b/svc/reward_commission.go index c836757..bea152a 100644 --- a/svc/reward_commission.go +++ b/svc/reward_commission.go @@ -158,6 +158,7 @@ func GetRewardCommission(engine *xorm.Engine, rmd *md.CommissionParam, isShare b ulink.ProfitList[k].Val = v.Val * zhios_order_relate_utils.StrToFloat64(commArr["integralRewardMultiple"]) } } + comm(commArr, ulink) return profit, pvdFee, sysFee, 0, ulink, nil } if cfg.Mode == "extend_price" { //直推奖励 @@ -235,9 +236,9 @@ func comm(commArr map[string]string, ulink *comm_plan.LvUser) *comm_plan.LvUser ulink.ProfitList[k].Val = v.Val * zhios_order_relate_utils.StrToFloat64(commArr["integralRewardMultiple"]) } } - } - if ulink.ParentUser != nil { - ulink.ParentUser = comm(commArr, ulink.ParentUser) + if ulink.ParentUser != nil { + ulink.ParentUser = comm(commArr, ulink.ParentUser) + } } return ulink }