diff --git a/lib/comm_plan/all.go b/lib/comm_plan/all.go index 6eaefd3..c4bcdb0 100644 --- a/lib/comm_plan/all.go +++ b/lib/comm_plan/all.go @@ -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 {