🔨 refactor driver: ali
This commit is contained in:
@ -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
7
bootstrap/drivers.go
Normal 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"
|
||||
)
|
Reference in New Issue
Block a user