This commit is contained in:
不帅你报警 2021-10-30 20:34:02 +08:00
parent d1038c6764
commit ae897e1106
3 changed files with 3 additions and 3 deletions

View file

@ -1,3 +1,3 @@
package global
var conf map[string]interface{}
var Conf map[string]interface{}

View file

@ -149,7 +149,7 @@ func Init(path string) {
util.Log()
}
global.conf := sections
global.Conf := sections
}
// mapSection 将配置文件的 Section 映射到结构体上

View file

@ -63,7 +63,7 @@ func RelativePath(name string) string {
if filepath.IsAbs(name) {
return name
}
SystemConfig, ok := global.conf[ "SystemConfig" ]
SystemConfig, ok := global.Conf[ "SystemConfig" ]
if SystemConfig.DataPath != "" {
return filepath.Join(SystemConfig.DataPath, name)
} else {