diff --git a/api/products/views.py b/api/products/views.py index eb508d4..33d0805 100644 --- a/api/products/views.py +++ b/api/products/views.py @@ -578,7 +578,7 @@ class BaseView(View): return super().dispatch(request, *args, **kwargs) def get_qr_std(self, code): - return oss_get(code_to_qr_std_key(code), bucket=settings.OSS_QRS_BUCKET) + return oss_get(code_to_qr_std_key(code), bucket=settings.OSS_QRS_BUCKET, endpoint=settings.OSS_QRS_ENDPOINT) class UserInfoView(BaseView): name = 'userinfo' @@ -1692,7 +1692,7 @@ class QrStdStatView(BaseView): auth_check = 'admin' def get(self, request): - ret = oss_stat(bucket=settings.OSS_QRS_BUCKET) + ret = oss_stat(bucket=settings.OSS_QRS_BUCKET, endpoint=settings.OSS_QRS_ENDPOINT) return JsonResponse(ret) class LogReportView(BaseView):