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

@@ -16,7 +16,7 @@ func init() {
if e := config.Load(config.Options{
Config: &Config,
Default: &models.Config{
From: models.LoginForm{
Form: models.LoginForm{
Domain: "www.msftconnecttest.com",
UserType: "cmcc",
},
@@ -28,6 +28,12 @@ func init() {
},
Settings: models.Settings{
Timeout: 1,
Daemon: models.Daemon{
Path: ".autoLogin",
},
Guardian: models.Guardian{
Duration: 300,
},
},
},
Path: Flags.Path,