|
@@ -73,11 +73,14 @@ func GetPlanCfg(eg *xorm.Engine, pvd, masterId string, rewardOpts map[string]*mo |
|
|
opt := &comm_plan.PlanOpt{} |
|
|
opt := &comm_plan.PlanOpt{} |
|
|
// 根据供应商 |
|
|
// 根据供应商 |
|
|
rewardOpt := rewardOpts[pvd] |
|
|
rewardOpt := rewardOpts[pvd] |
|
|
if pvd == "tikTok" && rmd.IsTikTokTeamOrder == "1" && rewardOpts["tikTokTeam"] != nil && rewardOpts["tikTokTeam"].PlanCommissionId > 0 { |
|
|
|
|
|
rewardOpt = rewardOpts["tikTokTeam"] |
|
|
|
|
|
} |
|
|
|
|
|
if pvd == "kuaishou" && rmd.IsTikTokTeamOrder == "1" && rewardOpts["kuaishouTeam"] != nil && rewardOpts["kuaishouTeam"].PlanCommissionId > 0 { |
|
|
|
|
|
rewardOpt = rewardOpts["kuaishouTeam"] |
|
|
|
|
|
|
|
|
if strings.Contains(pvd, "seFree") == false { |
|
|
|
|
|
if pvd == "tikTok" && rmd.IsTikTokTeamOrder == "1" && rewardOpts["tikTokTeam"] != nil && rewardOpts["tikTokTeam"].PlanCommissionId > 0 { |
|
|
|
|
|
rewardOpt = rewardOpts["tikTokTeam"] |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if pvd == "kuaishou" && rmd.IsTikTokTeamOrder == "1" && rewardOpts["kuaishouTeam"] != nil && rewardOpts["kuaishouTeam"].PlanCommissionId > 0 { |
|
|
|
|
|
rewardOpt = rewardOpts["kuaishouTeam"] |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
if rewardOpt == nil { |
|
|
if rewardOpt == nil { |
|
|
return nil, zhios_order_relate_logx.Warn("找不到方案记录") |
|
|
return nil, zhios_order_relate_logx.Warn("找不到方案记录") |
|
|