This commit is contained in:
2023-07-10 02:23:38 +08:00
parent 01b6451155
commit 66772cb659
6 changed files with 19 additions and 55 deletions

View File

@@ -38,6 +38,9 @@ func ReadConfig() Config {
viper.SetDefault("log.handlers", "console")
viper.SetDefault("log.level", "info")
viper.SetDefault("service.auth", true)
defer func() {
os.MkdirAll(conf.Data.Dir, os.ModeDir)
}()
/*// 读取指定的配置文件
if !strings.EqualFold("", fileName) {