diff --git a/apiserver/utils.py b/apiserver/utils.py index 77549ce..dfe4b30 100644 --- a/apiserver/utils.py +++ b/apiserver/utils.py @@ -52,12 +52,12 @@ def download_file_to_path(access_key, access_key_secret, bucket_url, bucket_name @staticmethod def download_file(object_name, local_file): - return OssDownloader.download_file_to_path(access_key=settings.ACCESS_KEY, - access_key_secret=settings.ACCESS_KEY_SECRET, - bucket_url=OssDownloader.BUCKET_URL, - bucket_name=OssDownloader.BUCKET_NAME, - object_name=object_name, - local_file=local_file) + return OssDownloader.download_file_to_path( #access_key=settings.ACCESS_KEY, + #access_key_secret=settings.ACCESS_KEY_SECRET, + bucket_url=OssDownloader.BUCKET_URL, + bucket_name=OssDownloader.BUCKET_NAME, + object_name=object_name, + local_file=local_file) def base64_decode(raw):