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,8 +403,9 @@ func loadConfig() {
|
||||
data, err1 := io.ReadAll(f)
|
||||
if err1 == nil {
|
||||
if len(data) > 0 {
|
||||
config.Unmarshal(data)
|
||||
return
|
||||
if config.Unmarshal(data) == nil {
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user