mirror of https://github.com/Xhofe/alist
feat(quark): set status
parent
5a527dfa2c
commit
a0f4383d41
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue