|
@@ -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 { |
|
|
if err := json.Unmarshal([]byte(commissionOpt.Data), &subsidyTmp); err != nil { |
|
|
return nil, zhios_order_relate_logx.Warn(fmt.Sprintf("%s:分佣方案数据设置错误", masterId)) |
|
|
return nil, zhios_order_relate_logx.Warn(fmt.Sprintf("%s:分佣方案数据设置错误", masterId)) |
|
|
} |
|
|
} |
|
|