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