fix: 邀请校验管事无ClubID时以当前小程序为准,注册失败打日志
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -555,9 +555,14 @@ class DashouZhuceView(APIView):
|
||||
|
||||
ok, msg = assert_invite_same_club(request, guanshi_profile.user, current_user)
|
||||
if not ok:
|
||||
logger.warning(
|
||||
'dashouzhuce 俱乐部校验失败 uid=%s club=%s msg=%s',
|
||||
current_user.UserUID, resolve_club_id_for_wechat_request(request), msg,
|
||||
)
|
||||
return Response({
|
||||
'code': 403,
|
||||
'message': msg,
|
||||
'msg': msg,
|
||||
'data': None
|
||||
}, status=status.HTTP_403_FORBIDDEN)
|
||||
|
||||
@@ -919,9 +924,14 @@ class WechatLoginAndDashouRegisterView(APIView):
|
||||
request, guanshi_profile.user, user_main,
|
||||
)
|
||||
if not ok:
|
||||
logger.warning(
|
||||
'wdlyhdl 俱乐部校验失败 uid=%s club=%s msg=%s invite=%s',
|
||||
user_main.UserUID, club_id, invite_msg, yaoqingma[:8],
|
||||
)
|
||||
return Response({
|
||||
'code': 403,
|
||||
'msg': invite_msg,
|
||||
'message': invite_msg,
|
||||
'data': None
|
||||
}, status=status.HTTP_403_FORBIDDEN)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user