mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-23 22:04:06 +08:00
✨ google default root folder
This commit is contained in:
parent
9dcaa9b07a
commit
50226f66e3
@ -43,7 +43,7 @@ func (driver GoogleDrive) Items() []Item {
|
||||
Name: "root_folder",
|
||||
Label: "root folder file_id",
|
||||
Type: "string",
|
||||
Required: true,
|
||||
Required: false,
|
||||
},
|
||||
}
|
||||
}
|
||||
@ -56,6 +56,9 @@ func (driver GoogleDrive) Save(account *model.Account, old *model.Account) error
|
||||
_ = model.SaveAccount(account)
|
||||
return err
|
||||
}
|
||||
if account.RootFolder == "" {
|
||||
account.RootFolder = "root"
|
||||
}
|
||||
account.Status = "work"
|
||||
_ = model.SaveAccount(account)
|
||||
return nil
|
||||
|
Loading…
x
Reference in New Issue
Block a user