完善加载配置

This commit is contained in:
fumiama 2021-08-09 12:40:10 +08:00
parent 60c29b2d12
commit 3005ee5b02

View File

@ -403,12 +403,13 @@ func loadConfig() {
data, err1 := io.ReadAll(f)
if err1 == nil {
if len(data) > 0 {
config.Unmarshal(data)
if config.Unmarshal(data) == nil {
return
}
}
}
}
}
config.Checkin = make(map[uint64]bool)
config.Welcome = make(map[uint64]string)
} else {