Sfoglia il codice sorgente

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

tags/v3.3.8
huangjiajun 2 anni fa
parent
commit
ee06461bd2
1 ha cambiato i file con 6 aggiunte e 3 eliminazioni
  1. +6
    -3
      lib/comm_plan/all.go

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

@@ -483,15 +483,18 @@ func commSubsidy(opt *PlanOpt, totalAmt, integralTotalAmt float64, lvuser *LvUse
pvdBool = true
}
}
if pvdBool && lvuser.Diff != 1 {
return 0, 0, 0, nil, nil
}
if _, ok := grade[lv]; !ok {
return 0, 0, 0, nil, nil
}
if grade[lv].UserSubsidyType == "" {
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
if userLvUpSubsidyList == nil {


Caricamento…
Annulla
Salva