diff --git a/app/controller/Insiders.js b/app/controller/Insiders.js index 7f69c44..42e615c 100644 --- a/app/controller/Insiders.js +++ b/app/controller/Insiders.js @@ -41,7 +41,7 @@ class InsidersController extends Controller { await ctx.service.insiders.loginStatus(user.dataValues.uid, 1); this.setResponse(ctx, 200, '登录成功', "deconstruction", data); } else { - const data = user.dataValues.status == 2 ? { msg: '该账号已被封禁,请联系管理员申诉', code: 444 } : { msg: '登录失败', code: 404 }; + const data = user ? user.dataValues.status == 2 ? { msg: '该账号已被封禁,请联系管理员申诉', code: 444 } : { msg: '登录失败', code: 404 } : { msg: '登录失败', code: 404 }; this.setResponse(ctx, 404, '登录失败', "deconstruction", data); } } catch (error) { diff --git a/controllerLog/2026/5/22.txt b/controllerLog/2026/5/22.txt new file mode 100644 index 0000000..1121565 --- /dev/null +++ b/controllerLog/2026/5/22.txt @@ -0,0 +1,3 @@ +[2026-5-22>>>16:41:23]>>>Insiders--login>>>>TypeError: Cannot read properties of undefined (reading 'status') +[2026-5-22>>>16:42:10]>>>Insiders--login>>>>TypeError: Cannot read properties of undefined (reading 'status') +[2026-5-22>>>16:46:50]>>>Insiders--login>>>>TypeError: Cannot read properties of undefined (reading 'status')