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 }