From 390202b9e45d65b3e1c62e35e2d08e5458813a28 Mon Sep 17 00:00:00 2001 From: XingQue Date: Fri, 10 Jul 2026 00:12:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B5=84=E6=96=99=E9=A1=B5=E4=BB=85?= =?UTF-8?q?=E6=94=B9=E5=A4=B4=E5=83=8F=E4=B8=8D=E5=86=8D=E8=AF=AF=E5=88=A4?= =?UTF-8?q?=E4=B8=BA=E6=89=8B=E6=9C=BA=E5=8F=B7=E8=AE=A4=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 手机号认证流需同时带头像与 shoujihao_code 且无昵称;普通编辑只上传头像可正常保存。 Co-authored-by: Cursor --- users/views/user_info.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/users/views/user_info.py b/users/views/user_info.py index 6ebfa35..f66f736 100644 --- a/users/views/user_info.py +++ b/users/views/user_info.py @@ -221,8 +221,8 @@ class UserInfoUpdateView(APIView): else: code = str(code or '').strip() - # 认证页仅上传头像+手机号,不带昵称 - is_phone_auth_flow = bool(av) and not nick + # 手机号强制认证页:同时带头像 + shoujihao_code,且不带 nicheng(资料编辑页会带昵称) + is_phone_auth_flow = bool(av) and bool(code) and not nick phone_error = None if is_phone_auth_flow and not code: