- globals init

This commit is contained in:
gazebo
2019-03-21 10:19:16 +08:00
parent 75406c8d49
commit 9d5db6cfc9
4 changed files with 2 additions and 17 deletions

View File

@@ -43,7 +43,7 @@ func init() {
logger, _ := zap.NewDevelopment()
SugarLogger = logger.Sugar()
baseapi.Init(SugarLogger)
Init()
Init() // 这里必须要自动调用,不然直接引用全局变量的模块得不到正确的配置值
}
func Init() {