From 52376de262b22eb9b91e6009031bcec3d4c4d24e Mon Sep 17 00:00:00 2001 From: sbwml <984419930@qq.com> Date: Thu, 16 Feb 2023 17:48:29 +0800 Subject: [PATCH] fix --- aliyunpan/about.py | 2 +- aliyunpan/api/core.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/aliyunpan/about.py b/aliyunpan/about.py index 8a7ae5d..f3b2d6d 100644 --- a/aliyunpan/about.py +++ b/aliyunpan/about.py @@ -1 +1 @@ -__version__ = '3.0.8' +__version__ = '3.0.9' diff --git a/aliyunpan/api/core.py b/aliyunpan/api/core.py index 1bfa078..ed44406 100644 --- a/aliyunpan/api/core.py +++ b/aliyunpan/api/core.py @@ -112,13 +112,12 @@ def get_file_list(self, parent_file_id: str = 'root', next_marker: str = None, r json['marker'] = next_marker headers = {} kwargs = {} + url = 'https://api.aliyundrive.com/adrive/v3/file/list' if self._share.share_id: - url = 'https://api.aliyundrive.com/adrive/v3/file/list' json.update({'share_id': self._share.share_id, 'share_pwd': self._share.share_pwd}) headers = {'x-share-token': self.get_share_token()} kwargs = {'access_token': None} else: - url = 'https://api.aliyundrive.com/v2/file/list' json.update({"drive_id": self.drive_id, 'fields': '*'}) logger.info(f'Get the list of parent_file_id {parent_file_id}.') r = self._req.post(url, json=json, headers=headers, **kwargs)