mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-21 07:10:07 +08:00
✨ 完善加载配置
This commit is contained in:
parent
60c29b2d12
commit
3005ee5b02
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user