mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-21 15:30:09 +08:00
✨ 完善加载配置
This commit is contained in:
parent
60c29b2d12
commit
3005ee5b02
@ -403,8 +403,9 @@ func loadConfig() {
|
|||||||
data, err1 := io.ReadAll(f)
|
data, err1 := io.ReadAll(f)
|
||||||
if err1 == nil {
|
if err1 == nil {
|
||||||
if len(data) > 0 {
|
if len(data) > 0 {
|
||||||
config.Unmarshal(data)
|
if config.Unmarshal(data) == nil {
|
||||||
return
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user