This commit is contained in:
wangchuxiao 2023-03-08 19:59:22 +08:00
parent b9edc90349
commit 4c5210af59

View File

@ -516,8 +516,9 @@ func (c *config) initConfig(config interface{}, configName, configFolderPath str
}
configPath = filepath.Join(Root, "config", configName)
fmt.Println(configPath, "not exist, use", configPath)
}
} else {
Root = filepath.Dir(configPath)
}
return c.unmarshalConfig(config, configPath)
}