Skip to content

Commit

Permalink
feat(aliyundrive_open): add expiration for link (close #4061)
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed May 2, 2023
1 parent 7e3b13e commit 822be17
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/aliyundrive_open/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 822be17

Please sign in to comment.