|
@@ -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 { |
|
|