Browse Source

更新

master
huangjiajun 3 months ago
parent
commit
a3d7107773
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      lib/comm_plan/all.go
  2. +1
    -0
      lib/comm_plan/init.go

+ 1
- 1
lib/comm_plan/all.go View File

@@ -618,7 +618,7 @@ func commSubsidy(opt *PlanOpt, totalAmt, integralTotalAmt float64, lvuser *LvUse
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" {
if (opt.Mode == "lv_price_other" || opt.Mode == "lv_commission_other") && grade[lv].UserSubsidyType != "up_lv" {
pvdBool = false pvdBool = false
} }
if pvdBool && lvuser.Diff != 1 { if pvdBool && lvuser.Diff != 1 {


+ 1
- 0
lib/comm_plan/init.go View File

@@ -14,6 +14,7 @@ var Fn = map[string]func(opt *PlanOpt, totalAmt, integralTotalAmt float64, userL
"lv_winery": CalcWinery, "lv_winery": CalcWinery,
"lv_winery_adv": CalcAdv, "lv_winery_adv": CalcAdv,
"lv_price_other": CalcOther, "lv_price_other": CalcOther,
"lv_commission_other": CalcOther,
"lv_ds_check": CalcDsCheck, "lv_ds_check": CalcDsCheck,
} }




Loading…
Cancel
Save