Explorar el Código

更新

master
huangjiajun hace 3 meses
padre
commit
a3d7107773
Se han modificado 2 ficheros con 2 adiciones y 1 borrados
  1. +1
    -1
      lib/comm_plan/all.go
  2. +1
    -0
      lib/comm_plan/init.go

+ 1
- 1
lib/comm_plan/all.go Ver fichero

@@ -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 Ver fichero

@@ -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,
}



Cargando…
Cancelar
Guardar