This commit is contained in:
aaron 2025-02-25 19:44:16 +08:00
parent ba6c3aa2bb
commit c842225fcc

View File

@ -137,7 +137,7 @@ async def get_user_info(
user_data = user_info.model_dump()
# 获取用户归属小区信息
if current_user.community_id > 0:
if current_user.community_id:
user_data['community_id'] = current_user.community_id
community = db.query(CommunityDB).filter(CommunityDB.id == current_user.community_id).first()
if community: