跳过检查更新

This commit is contained in:
微凉
2021-02-27 20:06:09 +08:00
parent 0e7083a713
commit 9cb548d4f7
5 changed files with 28 additions and 10 deletions

View File

@ -29,14 +29,14 @@ func GetFile(fileId string) (*File, error) {
}
// get download_url
func GetDownLoadUrl(fileId string) (*File, error) {
func GetDownLoadUrl(fileId string) (*DownloadResp, error) {
url:=conf.Conf.AliDrive.ApiUrl+"/file/get_download_url"
req:=DownloadReq{
DriveId: User.DefaultDriveId,
FileId: fileId,
ExpireSec: 14400,
}
var resp File
var resp DownloadResp
if err := BodyToJson(url, req, &resp, true); err!=nil {
return nil,err
}