瀏覽代碼

更新

master
huangjiajun 10 月之前
父節點
當前提交
651e384595
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. +1
    -0
      lib/comm_plan/init.go
  2. +1
    -1
      svc/get_plan_cfg.go

+ 1
- 0
lib/comm_plan/init.go 查看文件

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


+ 1
- 1
svc/get_plan_cfg.go 查看文件

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

}


Loading…
取消
儲存