Browse Source

add reverse:for v2.1.6 直推奖励制度调整

tags/v2.1.6
huangjiajun 2 years ago
parent
commit
1eadcdcfc0
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      svc/reward_commission.go

+ 5
- 0
svc/reward_commission.go View File

@@ -168,6 +168,11 @@ func GetRewardCommission(engine *xorm.Engine, rmd *md.CommissionParam, isShare b
"source": newProvider,
}
reward, parentUid := ExtendPriceReward(engine, param, cfg)
for k, v := range reward {
if zhios_order_relate_utils.StrToFloat64(v) < 0 {
reward[k] = "0"
}
}
//直推收益处理
if parentUid > 0 {
ulink = getRewardLink(zhios_order_relate_utils.IntToStr(parentUid), 1, reward, ulink, "extend", cfg)


Loading…
Cancel
Save