瀏覽代碼

更新

master
huangjiajun 3 月之前
父節點
當前提交
a3d7107773
共有 2 個檔案被更改,包括 2 行新增1 行删除
  1. +1
    -1
      lib/comm_plan/all.go
  2. +1
    -0
      lib/comm_plan/init.go

+ 1
- 1
lib/comm_plan/all.go 查看文件

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


+ 1
- 0
lib/comm_plan/init.go 查看文件

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



Loading…
取消
儲存