🔨 refactor driver: ali

This commit is contained in:
微凉
2021-11-27 19:40:36 +08:00
parent 98691b2aa8
commit f577d82242
14 changed files with 999 additions and 918 deletions

View File

@ -17,7 +17,7 @@ func InitAccounts() {
model.RegisterAccount(account)
driver, ok := drivers.GetDriver(account.Type)
if !ok {
log.Errorf("no [%s] driver", driver)
log.Errorf("no [%s] driver", account.Type)
} else {
err := driver.Save(&accounts[i], nil)
if err != nil {

7
bootstrap/drivers.go Normal file
View File

@ -0,0 +1,7 @@
package bootstrap
import (
_ "github.com/Xhofe/alist/drivers/123pan"
_ "github.com/Xhofe/alist/drivers/189cloud"
_ "github.com/Xhofe/alist/drivers/alidrive"
)