v0.7测试

This commit is contained in:
2026-04-15 08:41:44 +08:00
parent a7f491cef6
commit 637f3b665d
7 changed files with 30 additions and 7 deletions

View File

@@ -34,9 +34,9 @@ class UserModel:
async def get_by_user_id(user_id: int) -> dict:
"""根据用户ID获取用户"""
sql = """
SELECT user_id, username, real_name, user_type, student_id,
SELECT user_id, username, password_hash, real_name, user_type, student_id,
need_change_password, status
FROM users
FROM users
WHERE user_id = %s
"""
return await execute_one(sql, (user_id,))