chore(aliyundrive): change alert info

pull/3612/head v3.12.1
Andy Hsu 2023-02-25 14:28:27 +08:00
parent ec54831162
commit 79df63d319
2 changed files with 2 additions and 14 deletions

View File

@ -18,7 +18,8 @@ type Addition struct {
var config = driver.Config{
Name: "Aliyundrive",
DefaultRoot: "root",
Alert: `warning|Deprecated, no longer maintained and will be removed in a future version.
Alert: `warning|There may be an infinite loop bug in this driver.
Deprecated, no longer maintained and will be removed in a future version.
We recommend using the official driver AliyundriveOpen.`,
}

View File

@ -18,7 +18,6 @@ type AliyundriveOpen struct {
model.Storage
Addition
base string
//cron *cron.Cron
AccessToken string
DriveId string
@ -42,22 +41,10 @@ func (d *AliyundriveOpen) Init(ctx context.Context) error {
return err
}
d.DriveId = utils.Json.Get(res, "default_drive_id").ToString()
//d.cron = cron.NewCron(time.Hour * 2)
//d.cron.Do(func() {
// err := d.refreshToken()
// d.Status = err.Error()
// op.MustSaveDriverStorage(d)
// if err != nil {
// log.Errorf("%+v", err)
// }
//})
return nil
}
func (d *AliyundriveOpen) Drop(ctx context.Context) error {
//if d.cron != nil {
// d.cron.Stop()
//}
return nil
}