修正了小写手机键导致的问题

This commit is contained in:
2026-06-19 12:11:00 +08:00
parent 7df8a1a1d2
commit c9bc811bc1
4 changed files with 22 additions and 22 deletions

View File

@@ -995,7 +995,7 @@ class GetAdminZhanghaoView(APIView):
user = request.user
# 获取当前用户的手机号CharField字符串类型
current_phone = getattr(user, 'phone', '')
current_phone = getattr(user, 'Phone', '')
if not current_phone:
return Response({
'code': 401,
@@ -1092,7 +1092,7 @@ class GetXiugaiJiluView(APIView):
user = request.user
# 获取当前用户的手机号CharField字符串
current_phone = getattr(user, 'phone', '')
current_phone = getattr(user, 'Phone', '')
if not current_phone:
return Response({
'code': 401,