修复无法读取CONF

This commit is contained in:
ZhuoQinghui 2025-02-17 11:20:47 +08:00
parent 8d063e1330
commit 77f7aec1c8

View File

@ -91,7 +91,7 @@ func readAppConfig(c *AppConfig) *AppConfig {
log.Fatalln("读取配置文件失败")
}
//var conf = &model.AppConfig{}
err = yaml.Unmarshal(file, c)
err = yaml.Unmarshal(file, &c)
if err != nil {
log.Fatalln("解析配置文件失败")
}