From 4f08020772e074ab4dc1749489f37efdfe5811d8 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Thu, 1 Dec 2022 11:39:51 +0800 Subject: [PATCH] =?UTF-8?q?add=20reverse:for=20v4.1.9=20=20=E7=A7=AF?= =?UTF-8?q?=E5=88=86=E9=87=8A=E6=94=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rule/relate_commission.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rule/relate_commission.go b/rule/relate_commission.go index 972b8a0..3ad8b65 100644 --- a/rule/relate_commission.go +++ b/rule/relate_commission.go @@ -273,7 +273,9 @@ func BatchGetCommissionByOrder(engine *xorm.Engine, dbName string, CommissionPar if param.Oid == "" { return errors.New("订单缺失") } - param.CommissionParam.OldPrice = param.CommissionParam.GoodsPrice + if zhios_order_relate_utils.StrToFloat64(param.CommissionParam.GoodsPrice) > 0 { + param.CommissionParam.OldPrice = param.CommissionParam.GoodsPrice + } param.CommissionParam.Oid = param.Oid profit, pvdFee, sysFee, subsidyFee, lvUser, err := svc.GetRewardCommission(engine, ¶m.CommissionParam, isShare, param.Uid, param.Provider, dbName, isAllLevelReturn, map[string]string{}, commArr, plan, commission, virtualCoinMoneyRate)