Skip to content

Commit 8977093

Browse files
committed
fix 下载图片变小问题
1 parent 166c97e commit 8977093

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/aligo/apis/Download.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def download_file(
165165
if file.type == 'folder':
166166
raise AligoException('文件类型不对:期待文件,得到的是文件夹')
167167
file_path = os.path.join(local_folder, file.name)
168-
url = file.download_url or file.url or self._core_get_download_url(GetDownloadUrlRequest(
168+
url = file.download_url or self._core_get_download_url(GetDownloadUrlRequest(
169169
file_id=file.file_id,
170170
drive_id=file.drive_id,
171171
file_name=file.name,

0 commit comments

Comments
 (0)