mirror of
https://github.com/AlistGo/alist.git
synced 2025-09-15 12:58:42 +08:00
feat(aliyundrive_open): add expiration for link (close #4061)
This commit is contained in:
parent
7e3b13ea2d
commit
822be17fb9
@ -66,8 +66,10 @@ func (d *AliyundriveOpen) Link(ctx context.Context, file model.Obj, args model.L
|
||||
return nil, err
|
||||
}
|
||||
url := utils.Json.Get(res, "url").ToString()
|
||||
exp := time.Hour
|
||||
return &model.Link{
|
||||
URL: url,
|
||||
URL: url,
|
||||
Expiration: &exp,
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user