fix: 登录接口彻底跳过鉴权,消除 403 权限不足
ClubWechatLoginView / WechatMiniProgramLoginView 覆盖 initial,不做 JWT/权限/限流;动态配置接口也不再解析坏 Token。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -103,8 +103,13 @@ class WechatMiniProgramLoginView(APIView):
|
||||
"""
|
||||
微信小程序登录接口
|
||||
"""
|
||||
throttle_classes = [AnonRateThrottle]
|
||||
permission_classes = [AllowAny]
|
||||
authentication_classes = ()
|
||||
permission_classes = ()
|
||||
throttle_classes = ()
|
||||
|
||||
def initial(self, request, *args, **kwargs):
|
||||
# 与 /jituan/auth/wechat-login 一致:登录绝不走 JWT,避免 403「权限不足」
|
||||
return
|
||||
|
||||
def post(self, request):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user