From c842225fcc8b33ba561084a1418949449502b62f Mon Sep 17 00:00:00 2001 From: aaron <> Date: Tue, 25 Feb 2025 19:44:16 +0800 Subject: [PATCH] 1 --- app/api/endpoints/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/endpoints/user.py b/app/api/endpoints/user.py index 35334d6..84b1575 100644 --- a/app/api/endpoints/user.py +++ b/app/api/endpoints/user.py @@ -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: