|
@@ -33,7 +33,6 @@ func GetAllPlan(eg *xorm.Engine, dbName string) (map[string]*model.PlanReward, m |
|
|
plan := make(map[string]*model.PlanReward, 0) |
|
|
plan := make(map[string]*model.PlanReward, 0) |
|
|
pvds, _ := db.DbsPlanRewardByPvds(eg) |
|
|
pvds, _ := db.DbsPlanRewardByPvds(eg) |
|
|
for _, v := range pvds { |
|
|
for _, v := range pvds { |
|
|
v.BuckleRate = v.BuckleRate / 100 |
|
|
|
|
|
plan[v.Pvd] = v |
|
|
plan[v.Pvd] = v |
|
|
} |
|
|
} |
|
|
list, _ := db.SecondGetAllPriceTypeList(eg) |
|
|
list, _ := db.SecondGetAllPriceTypeList(eg) |
|
@@ -290,6 +289,7 @@ func PlanOpts(eg *xorm.Engine) map[string]*comm_plan.PlanOpt { |
|
|
GlobalRate: float64(v.GlobalRate), |
|
|
GlobalRate: float64(v.GlobalRate), |
|
|
SelfBuyGlobalRate: v.SelfBuyGlobalRate, |
|
|
SelfBuyGlobalRate: v.SelfBuyGlobalRate, |
|
|
UserRate: subsidyTmp, |
|
|
UserRate: subsidyTmp, |
|
|
|
|
|
BuckleRate: v.BuckleRate, |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|