|
|
@@ -20,12 +20,13 @@ var pvdCfgList = map[string]struct { |
|
|
|
SK string |
|
|
|
Sid string |
|
|
|
}{ |
|
|
|
md.PVD_TB: {"third_taobao_svc_ak", "third_taobao_svc_sk", "third_taobao_web_sid"}, |
|
|
|
md.PVD_KL: {md.KEY_CFG_KL_AK, md.KEY_CFG_KL_SK, ""}, |
|
|
|
md.PVD_SN: {md.KEY_CFG_SN_AK, md.KEY_CFG_SN_SK, ""}, |
|
|
|
md.PVD_JD: {md.KEY_CFG_ZM_AK, md.KEY_CFG_ZM_SK, md.KEY_CFG_ZM_WEB_ID}, |
|
|
|
md.PVD_PDD: {md.KEY_CFG_ZM_AK, md.KEY_CFG_ZM_SK, md.KEY_CFG_ZM_WEB_ID}, |
|
|
|
md.PVD_VIP: {md.KEY_CFG_ZM_AK, md.KEY_CFG_ZM_SK, md.KEY_CFG_ZM_WEB_ID}, |
|
|
|
md.PVD_TB: {"third_taobao_svc_ak", "third_taobao_svc_sk", "third_taobao_web_sid"}, |
|
|
|
md.PVD_KL: {md.KEY_CFG_KL_AK, md.KEY_CFG_KL_SK, ""}, |
|
|
|
md.PVD_SN: {md.KEY_CFG_SN_AK, md.KEY_CFG_SN_SK, ""}, |
|
|
|
md.PVD_JD: {md.KEY_CFG_ZM_AK, md.KEY_CFG_ZM_SK, md.KEY_CFG_ZM_WEB_ID}, |
|
|
|
md.PVD_JDOwn: {md.KEY_CFG_ZM_AK, md.KEY_CFG_ZM_SK, md.KEY_CFG_ZM_WEB_ID}, |
|
|
|
md.PVD_PDD: {md.KEY_CFG_ZM_AK, md.KEY_CFG_ZM_SK, md.KEY_CFG_ZM_WEB_ID}, |
|
|
|
md.PVD_VIP: {md.KEY_CFG_ZM_AK, md.KEY_CFG_ZM_SK, md.KEY_CFG_ZM_WEB_ID}, |
|
|
|
} |
|
|
|
|
|
|
|
func GetAllPlan(eg *xorm.Engine, dbName string) (map[string]*model.PlanReward, map[int]*model.PlanCommission, map[int]string) { |
|
|
@@ -82,6 +83,9 @@ func GetPlanCfg(eg *xorm.Engine, pvd, masterId string, rewardOpts map[string]*mo |
|
|
|
rewardOpt = rewardOpts["kuaishouTeam"] |
|
|
|
} |
|
|
|
} |
|
|
|
if pvd == md.PVD_JDOwn && rewardOpts["jd_own"] == nil { |
|
|
|
rewardOpt = rewardOpts["jd"] |
|
|
|
} |
|
|
|
if rewardOpt == nil { |
|
|
|
return nil, zhios_order_relate_logx.Warn("找不到方案记录") |
|
|
|
} |
|
|
|