Browse Source

add reverse:for v3.3.8 礼包可以用购买商品补贴

tags/v3.3.8
huangjiajun 2 years ago
parent
commit
ee06461bd2
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      lib/comm_plan/all.go

+ 6
- 3
lib/comm_plan/all.go View File

@@ -483,15 +483,18 @@ func commSubsidy(opt *PlanOpt, totalAmt, integralTotalAmt float64, lvuser *LvUse
pvdBool = true pvdBool = true
} }
} }
if pvdBool && lvuser.Diff != 1 {
return 0, 0, 0, nil, nil
}
if _, ok := grade[lv]; !ok { if _, ok := grade[lv]; !ok {
return 0, 0, 0, nil, nil return 0, 0, 0, nil, nil
} }
if grade[lv].UserSubsidyType == "" { if grade[lv].UserSubsidyType == "" {
grade[lv].UserSubsidyType = "up_lv" grade[lv].UserSubsidyType = "up_lv"
} }
if opt.Mode == "lv_price_other" && grade[lv].UserSubsidyType != "up_lv" {
pvdBool = false
}
if pvdBool && lvuser.Diff != 1 {
return 0, 0, 0, nil, nil
}
// 各等级 各虚拟币补贴设置 // 各等级 各虚拟币补贴设置
userLvUpSubsidyList := grade[lv].UserLvUpSubsidyList userLvUpSubsidyList := grade[lv].UserLvUpSubsidyList
if userLvUpSubsidyList == nil { if userLvUpSubsidyList == nil {


Loading…
Cancel
Save