fix: auth not check user is exists

This commit is contained in:
CrescentLeaf
2025-09-20 00:32:00 +08:00
parent d473ff81bd
commit dd7c578534

View File

@@ -22,6 +22,11 @@ export default class UserApi extends BaseApi {
code: 401,
}
if (!User.findById(access_token.author)) return {
msg: "賬號不存在",
code: 401,
}
return {
msg: "成功",
code: 200,