Browse Source

Merge remote-tracking branch 'origin/master'

tags/v2.1.8
DengBiao 2 years ago
parent
commit
e04df057e0
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