diff --git a/tronclass_cli/api/__init__.py b/tronclass_cli/api/__init__.py index 99539f5..ca50883 100644 --- a/tronclass_cli/api/__init__.py +++ b/tronclass_cli/api/__init__.py @@ -101,7 +101,7 @@ def get_activity(self, activity_id): return res.json() def get_document(self, ref_id, preview=False): - res = self._api_call(f'https://courses.zju.edu.cn/api/uploads/reference/document/{ref_id}/url', + res = self._api_call(f'api/uploads/reference/document/{ref_id}/url', params={'preview': str(preview).lower()}) res.raise_for_status() url = res.json()['url']