diff --git a/svc/reward_commission.go b/svc/reward_commission.go index 3004bad..9e95b20 100644 --- a/svc/reward_commission.go +++ b/svc/reward_commission.go @@ -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)