提交 85c45167 authored 作者: mooncake9527's avatar mooncake9527

update

上级 a755f601
...@@ -234,7 +234,6 @@ type App struct { ...@@ -234,7 +234,6 @@ type App struct {
PodName string `yaml:"-" json:"podName"` PodName string `yaml:"-" json:"podName"`
WebLog WebLog `yaml:"webLog" json:"webLog"` WebLog WebLog `yaml:"webLog" json:"webLog"`
Email Email `yaml:"email" json:"email"` Email Email `yaml:"email" json:"email"`
Snowflake Snowflake `yaml:"snowflake" json:"snowflake"`
IDGeneration IDGeneration `yaml:"idGeneration" json:"idGeneration"` IDGeneration IDGeneration `yaml:"idGeneration" json:"idGeneration"`
} }
......
...@@ -104,7 +104,7 @@ func Init() error { ...@@ -104,7 +104,7 @@ func Init() error {
func getConfigN() int { func getConfigN() int {
n := 0 n := 0
config.Read(func(c *config.Config) { config.Read(func(c *config.Config) {
n = c.App.Snowflake.Node n = c.App.IDGeneration.Snowflake.Node
}) })
return n return n
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论