Sfoglia il codice sorgente

add reverse:for v1.1.4 分佣修复

tags/v1.1.4
huangjiajun 2 anni fa
parent
commit
f296e7bbb8
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. +1
    -0
      svc/get_plan_cfg.go

+ 1
- 0
svc/get_plan_cfg.go Vedi File

@@ -75,6 +75,7 @@ func GetPlanCfg(eg *xorm.Engine, pvd, masterId string) (*comm_plan.PlanOpt, erro
}
var subsidyTmp map[int]*comm_plan.LvGrade
commissionOpt.Data = strings.ReplaceAll(commissionOpt.Data, "\"bili\":0", "\"bili\":\"0\"")
commissionOpt.Data = strings.ReplaceAll(commissionOpt.Data, "\"buy_deliver_list\":[]", "\"buy_deliver_list\":{}")
if strings.Contains(commissionOpt.Data, "\"subsidy_mode_list\":[") { //兼容旧的方案
tmp := strings.Split(commissionOpt.Data, "\"subsidy_mode_list\":[")
if len(tmp) > 0 {


Caricamento…
Annulla
Salva