fix: 客服登录接口同样彻底跳过鉴权

避免 kefu-login 因坏 Token / 空鉴权头被 DRF 改写成 403 权限不足。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
XingQue
2026-07-23 01:11:49 +08:00
parent 97e9093aa5
commit d7f40409d6

View File

@@ -123,8 +123,12 @@ class ClubKefuLoginView(APIView):
POST /jituan/auth/kefu-login
body: { phone, password, erjimima }
"""
throttle_classes = [AnonRateThrottle]
permission_classes = [AllowAny]
authentication_classes = ()
permission_classes = ()
throttle_classes = ()
def initial(self, request, *args, **kwargs):
return
def post(self, request):
phone = (request.data.get('phone') or '').strip()