From 3acb4452a72c5877d64cc36e47d3de6ab4c78a47 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Fri, 9 Sep 2022 11:48:26 +0800 Subject: [PATCH] =?UTF-8?q?add=20reverse:for=20v3.1.3=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 --- md/extend_price_reward.go | 2 ++ svc/extend_agent_commission.go | 3 +++ svc/extend_price_reward.go | 3 +++ 3 files changed, 8 insertions(+) diff --git a/md/extend_price_reward.go b/md/extend_price_reward.go index 942a46f..d3a26f4 100644 --- a/md/extend_price_reward.go +++ b/md/extend_price_reward.go @@ -9,9 +9,11 @@ type ExtendRewardLvGrade struct { ExtendPriceRewardProvince map[string]ExtendPriceRewardListDetail `json:"extend_price_reward_province"` ExtendPriceRewardCity map[string]ExtendPriceRewardListDetail `json:"extend_price_reward_city"` ExtendPriceRewardArea map[string]ExtendPriceRewardListDetail `json:"extend_price_reward_area"` + ExtendPriceRewardSite map[string]ExtendPriceRewardListDetail `json:"extend_price_reward_site"` ExtendPriceRewardBuyGoodsProvince map[string]ExtendPriceRewardListDetail `json:"extend_price_reward_buy_goods_province"` ExtendPriceRewardBuyGoodsCity map[string]ExtendPriceRewardListDetail `json:"extend_price_reward_buy_goods_city"` ExtendPriceRewardBuyGoodsArea map[string]ExtendPriceRewardListDetail `json:"extend_price_reward_buy_goods_area"` + ExtendPriceRewardBuyGoodsSite map[string]ExtendPriceRewardListDetail `json:"extend_price_reward_buy_goods_site"` } type ExtendPriceRewardListDetail struct { BaseVal string `json:"base_val"` diff --git a/svc/extend_agent_commission.go b/svc/extend_agent_commission.go index 7ba9756..276cc97 100644 --- a/svc/extend_agent_commission.go +++ b/svc/extend_agent_commission.go @@ -80,6 +80,9 @@ func AddExtendAgentCommission(eg *xorm.Engine, args map[string]string) { if agentUser.Level == 3 { rewardList = lvGrade.ExtendPriceRewardBuyGoodsArea } + if agentUser.Level == 4 { + rewardList = lvGrade.ExtendPriceRewardBuyGoodsSite + } //判断有没有存过 relate, _ := db.GetExtendAgentCommissionRelate(eg, args["oid"], args["pvd"]) if relate != nil { diff --git a/svc/extend_price_reward.go b/svc/extend_price_reward.go index c30f5a3..f923da1 100644 --- a/svc/extend_price_reward.go +++ b/svc/extend_price_reward.go @@ -53,6 +53,9 @@ func ExtendPriceReward(eg *xorm.Engine, param map[string]string, cfg *comm_plan. if param["level"] == "3" { rewardList = lvGrade.ExtendPriceRewardArea } + if param["level"] == "4" { + rewardList = lvGrade.ExtendPriceRewardSite + } } //查出当前的数量 count, _ := eg.Where("source=? and lv=? and parent_uid=?", param["source"], param["level"], userProfile.ParentUid).Count(&model.UserLvBuyList{})