Browse Source

add reverse:for v1.2.1分佣调整

tags/v1.2.1
huangjiajun 2 years ago
parent
commit
023f798b64
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      svc/get_plan_cfg.go

+ 11
- 0
svc/get_plan_cfg.go View File

@@ -91,6 +91,17 @@ func GetPlanCfg(eg *xorm.Engine, pvd, masterId string) (*comm_plan.PlanOpt, erro
}
}
}
if strings.Contains(commissionOpt.Data, "\"buy_deliver_list\":[") { //
tmp := strings.Split(commissionOpt.Data, "\"buy_deliver_list\":[")
if len(tmp) > 0 {
tmp1 := strings.Split(tmp[1], "]")
if len(tmp1) > 0 {
str := "\"buy_deliver_list\":[" + tmp1[0] + "]"
str1 := "\"buy_deliver_list\":{" + tmp1[0] + "}"
commissionOpt.Data = strings.ReplaceAll(commissionOpt.Data, str, str1)
}
}
}
if err := json.Unmarshal([]byte(commissionOpt.Data), &subsidyTmp); err != nil {
return nil, zhios_order_relate_logx.Warn(fmt.Sprintf("%s:分佣方案数据设置错误", masterId))
}


Loading…
Cancel
Save