chore(aliyundrive): change alert info

This commit is contained in:
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{ var config = driver.Config{
Name: "Aliyundrive", Name: "Aliyundrive",
DefaultRoot: "root", 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.`, We recommend using the official driver AliyundriveOpen.`,
} }

View File

@ -18,7 +18,6 @@ type AliyundriveOpen struct {
model.Storage model.Storage
Addition Addition
base string base string
//cron *cron.Cron
AccessToken string AccessToken string
DriveId string DriveId string
@ -42,22 +41,10 @@ func (d *AliyundriveOpen) Init(ctx context.Context) error {
return err return err
} }
d.DriveId = utils.Json.Get(res, "default_drive_id").ToString() 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 return nil
} }
func (d *AliyundriveOpen) Drop(ctx context.Context) error { func (d *AliyundriveOpen) Drop(ctx context.Context) error {
//if d.cron != nil {
// d.cron.Stop()
//}
return nil return nil
} }