From 1eadcdcfc0e3f68a0c05f18eb04850cecd687868 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Mon, 5 Sep 2022 09:41:51 +0800 Subject: [PATCH] =?UTF-8?q?add=20reverse:for=20v2.1.6=20=E7=9B=B4=E6=8E=A8?= =?UTF-8?q?=E5=A5=96=E5=8A=B1=E5=88=B6=E5=BA=A6=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- svc/reward_commission.go | 5 +++++ 1 file changed, 5 insertions(+) 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)