huangjiajun 2 months ago
parent
commit
5652e016f7
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      md/commission_parameter.go
  2. +1
    -1
      rule/relate_commission.go

+ 1
- 0
md/commission_parameter.go View File

@@ -34,6 +34,7 @@ type CommissionFirstParam struct {
OldLv string `json:"old_lv"` //升级礼包读取的是升级前的等级
NewLv string `json:"new_lv"` //升级礼包读取的是升级后的等级
Provider string `json:"provider"`
IsHasLevel string `json:"is_has_level"`
IsAllLevelReturn int `json:"is_all_level_return"` // 是否返回所有层级
GoodsId string `json:"goods_id,omitempty"` // 用于标记是哪个商品的
OwnbuyReturnType int `json:"ownbuy_return_type"` //自购是否返利 0返利 1不返利


+ 1
- 1
rule/relate_commission.go View File

@@ -79,7 +79,7 @@ func BatchGetCommissionByGoods(eg *xorm.Engine, dbName string, commissionParamLi
param.CommissionParam.IsGoods = "1"
param.CommissionParam.ShowLevel = param.ShowLevel
mapData := make(map[string]string)
if param.Provider == "mall_goods_user_lv" {
if param.Provider == "mall_goods_user_lv" && param.IsHasLevel == "1" {
mapData = map[string]string{
"old_lv": param.OldLv,
"new_lv": param.NewLv,


Loading…
Cancel
Save