feat(quark): set status

pull/872/head
Xhofe 2022-03-30 14:06:50 +08:00
parent 5a527dfa2c
commit a0f4383d41
1 changed files with 6 additions and 0 deletions

View File

@ -64,6 +64,12 @@ func (driver Quark) Save(account *model.Account, old *model.Account) error {
return nil
}
_, err := driver.Get("/config", nil, nil, account)
if err == nil {
account.Status = "work"
} else {
account.Status = err.Error()
}
_ = model.SaveAccount(account)
return err
}