From 8615aef2a8009a3cbe905606331ead0bb427cdfe Mon Sep 17 00:00:00 2001 From: Fam Zheng Date: Thu, 15 May 2025 20:11:44 +0100 Subject: [PATCH] api: fix qr std get/put/stat --- api/products/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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):