From 83b59412816f7b1d2973384dfa4175350fb2e3e0 Mon Sep 17 00:00:00 2001 From: zdl <3489966805@qq.com> Date: Mon, 15 Dec 2025 13:44:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BE=AE=E4=BF=A1=E7=99=BB=E5=BD=95=20A?= =?UTF-8?q?PI=20=E8=BF=94=E5=9B=9E=E6=95=B0=E6=8D=AE=E6=B7=BB=E5=8A=A0=20p?= =?UTF-8?q?hone=20=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - /api/auth/login/wechat 端点返回的 user 对象中添加 phone 和 phone_confirmed 字段 - 保持与 /api/auth/session 返回格式一致 - 修复 PC 端微信扫码登录后手机号显示 [object, object] 的问题 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app.py b/app.py index 89709b0b..cc64efda 100755 --- a/app.py +++ b/app.py @@ -4763,6 +4763,8 @@ def login_with_wechat(): 'username': user.username, 'nickname': user.nickname or user.username, 'email': user.email, + 'phone': user.phone, + 'phone_confirmed': bool(user.phone_confirmed), 'avatar_url': user.avatar_url, 'has_wechat': True, 'wechat_open_id': user.wechat_open_id,