Merge branch 'feature_bugfix/251201_py_h5_ui' of https://git.valuefrontier.cn/vf/vf_react into feature_bugfix/251201_py_h5_ui

This commit is contained in:
2025-12-15 16:03:15 +08:00
22 changed files with 443 additions and 131 deletions

3
app.py
View File

@@ -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,
@@ -10958,6 +10960,7 @@ def create_event_post(event_id):
'created_at': post.created_at.isoformat(),
'user': {
'id': current_user.id,
'nickname': current_user.nickname, # 添加昵称,与导航区保持一致
'username': current_user.username,
'avatar_url': current_user.avatar_url
}