|
|
@@ -42,10 +42,13 @@ func GetAllPlan(eg *xorm.Engine, dbName string) (map[string]*model.PlanReward, m |
|
|
|
return plan, commission, virtualCoinMoneyRate |
|
|
|
} |
|
|
|
|
|
|
|
func GetPlanCfg(eg *xorm.Engine, pvd, masterId string, rewardOpts map[string]*model.PlanReward, commissionOpts map[int]*model.PlanCommission, virtualCoinMoneyRate map[int]string) (*comm_plan.PlanOpt, error) { |
|
|
|
func GetPlanCfg(eg *xorm.Engine, pvd, masterId string, rewardOpts map[string]*model.PlanReward, commissionOpts map[int]*model.PlanCommission, virtualCoinMoneyRate map[int]string, rmd *md.CommissionParam) (*comm_plan.PlanOpt, error) { |
|
|
|
opt := &comm_plan.PlanOpt{} |
|
|
|
// 根据供应商 |
|
|
|
rewardOpt := rewardOpts[pvd] |
|
|
|
if pvd == "tikTok" && rmd.IsTikTokTeamOrder == "1" && rewardOpts["tikTokTeam"] != nil { |
|
|
|
rewardOpt = rewardOpts["tikTokTeam"] |
|
|
|
} |
|
|
|
if rewardOpt == nil { |
|
|
|
return nil, zhios_order_relate_logx.Warn("找不到方案记录") |
|
|
|
} |
|
|
|