|
@@ -216,6 +216,7 @@ class LoginService:
|
|
|
raise CustomException(msg="用户不存在")
|
|
raise CustomException(msg="用户不存在")
|
|
|
|
|
|
|
|
# 更新最后登录时间
|
|
# 更新最后登录时间
|
|
|
|
|
+ auth = AuthSchema(db=db)
|
|
|
user = await UserCRUD(auth).update_last_login_crud(id=user.id)
|
|
user = await UserCRUD(auth).update_last_login_crud(id=user.id)
|
|
|
if not user:
|
|
if not user:
|
|
|
raise CustomException(msg="用户不存在")
|
|
raise CustomException(msg="用户不存在")
|