From 7d7da0dcc55cc1609dcad9793b0ea43765bc5a91 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 22 Oct 2024 18:53:40 +0800 Subject: [PATCH] 1 --- rule/relate_commission.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/rule/relate_commission.go b/rule/relate_commission.go index af37f92..9d1db89 100644 --- a/rule/relate_commission.go +++ b/rule/relate_commission.go @@ -78,7 +78,14 @@ func BatchGetCommissionByGoods(eg *xorm.Engine, dbName string, commissionParamLi param.CommissionParam.Oid = param.GoodsId param.CommissionParam.IsGoods = "1" param.CommissionParam.ShowLevel = param.ShowLevel - _, _, _, _, lvUser, err := svc.GetRewardCommission(eg, ¶m.CommissionParam, isShare, param.Uid, param.Provider, dbName, isAllLevelReturn, map[string]string{}, commArr, plan, commission, virtualCoinMoneyRate) + mapData := make(map[string]string) + if param.Provider == "mall_goods_user_lv" { + mapData = map[string]string{ + "old_lv": param.OldLv, + "new_lv": param.NewLv, + } + } + _, _, _, _, lvUser, err := svc.GetRewardCommission(eg, ¶m.CommissionParam, isShare, param.Uid, param.Provider, dbName, isAllLevelReturn, mapData, commArr, plan, commission, virtualCoinMoneyRate) if err != nil { return err }