Browse Source

更新

master
huangjiajun 10 months ago
parent
commit
651e384595
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      lib/comm_plan/init.go
  2. +1
    -1
      svc/get_plan_cfg.go

+ 1
- 0
lib/comm_plan/init.go View File

@@ -21,6 +21,7 @@ type NiuBeiIntegralReleaseO2oRatio struct {
Key string `json:"key"` Key string `json:"key"`
} }
type PlanOpt struct { type PlanOpt struct {
BuckleRate float64
PointType int PointType int
IntegralOpen int IntegralOpen int
PlanCommissionId int PlanCommissionId int


+ 1
- 1
svc/get_plan_cfg.go View File

@@ -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,
} }


} }


Loading…
Cancel
Save