fix(aliyundrive_open): missed `expire_sec` while get link (close #3610)

pull/3612/head
Andy Hsu 2023-02-25 17:54:36 +08:00
parent 79df63d319
commit 4dd753de52
1 changed files with 3 additions and 2 deletions

View File

@ -61,8 +61,9 @@ func (d *AliyundriveOpen) List(ctx context.Context, dir model.Obj, args model.Li
func (d *AliyundriveOpen) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error) {
res, err := d.request("/adrive/v1.0/openFile/getDownloadUrl", http.MethodPost, func(req *resty.Request) {
req.SetBody(base.Json{
"drive_id": d.DriveId,
"file_id": file.GetID(),
"drive_id": d.DriveId,
"file_id": file.GetID(),
"expire_sec": 14400,
})
})
if err != nil {