Browse Source

feat:提交

fuwencai 1 year ago
parent
commit
067068a8b1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      jydocs-back/config/config.go

+ 2 - 2
jydocs-back/config/config.go

@@ -68,7 +68,7 @@ func init() {
 	g.Cfg().GetAdapter().(*gcfg.AdapterFile).SetFileName("config.yaml")
 	var ctx = gctx.New()
 	Middleground = middleground.NewMiddleground(g.Cfg().MustGet(ctx, "etcd.hosts").Strings()).
-		RegUserCenter(g.Cfg().MustGet(ctx, "userCenterKey").String()).RegUserCenter(g.Cfg().MustGet(ctx, "powerCheckCenterKey").String())
-
+		RegUserCenter(g.Cfg().MustGet(ctx, "userCenterKey").String()).
+		RegPowerCheckCenter(g.Cfg().MustGet(ctx, "powerCheckCenterKey").String())
 	common.ReadConfig(&JyDocsAppConfig)
 }