feat: 细化配置文件,不兼容性更新

This commit is contained in:
Mmx
2021-11-25 08:25:03 +08:00
parent 5aa82c3fd9
commit 884934b951
5 changed files with 23 additions and 7 deletions

View File

@@ -9,7 +9,7 @@ import (
func main() {
defer util.Log.CatchRecover()
if global.Config.Settings.Guardian != 0 {
if global.Config.Settings.Guardian.Enable {
controllers.EnterGuardian()
} else if err := controllers.Login(true, false); err != nil {
util.Log.Println("运行出错,状态异常")