api: fix qr std get/put/stat
This commit is contained in:
parent
81008a65b9
commit
8615aef2a8
@ -578,7 +578,7 @@ class BaseView(View):
|
|||||||
return super().dispatch(request, *args, **kwargs)
|
return super().dispatch(request, *args, **kwargs)
|
||||||
|
|
||||||
def get_qr_std(self, code):
|
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):
|
class UserInfoView(BaseView):
|
||||||
name = 'userinfo'
|
name = 'userinfo'
|
||||||
@ -1692,7 +1692,7 @@ class QrStdStatView(BaseView):
|
|||||||
auth_check = 'admin'
|
auth_check = 'admin'
|
||||||
|
|
||||||
def get(self, request):
|
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)
|
return JsonResponse(ret)
|
||||||
|
|
||||||
class LogReportView(BaseView):
|
class LogReportView(BaseView):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user