🎇 execute save while delete account

This commit is contained in:
微凉
2022-01-15 19:36:37 +08:00
parent 21ca2f11b7
commit 2473309a51
17 changed files with 60 additions and 6 deletions

View File

@ -65,6 +65,9 @@ func (driver Pan123) Items() []base.Item {
}
func (driver Pan123) Save(account *model.Account, old *model.Account) error {
if account == nil {
return nil
}
if account.RootFolder == "" {
account.RootFolder = "0"
}