mirror of
https://github.com/Chenyu550/alist-fork.git
synced 2025-06-10 14:46:53 -04:00
🐛 fix 189 account status
This commit is contained in:
parent
07155cfd01
commit
f87ee1ed9e
@ -71,6 +71,13 @@ func (c Cloud189) Save(account *model.Account, old *model.Account) error {
|
||||
delete(client189Map, old.Name)
|
||||
}
|
||||
if err := c.Login(account); err != nil {
|
||||
account.Status = err.Error()
|
||||
_ = model.SaveAccount(account)
|
||||
return err
|
||||
}
|
||||
account.Status = "work"
|
||||
err := model.SaveAccount(account)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
|
||||
Loading…
Reference in New Issue
Block a user