From 08ac3e7b65b7aee33d9cfea6a1af0e0a5e0e43e3 Mon Sep 17 00:00:00 2001 From: qubiaobiao <3294694717@qq.com> Date: Thu, 4 Jun 2026 10:38:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B8=B8=E8=A7=84=E6=8E=A8=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/Insiders.js | 2 +- controllerLog/2026/5/22.txt | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 controllerLog/2026/5/22.txt 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')