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{})