常规推送

This commit is contained in:
2026-06-04 10:38:26 +08:00
parent bdc25653a4
commit 08ac3e7b65
2 changed files with 4 additions and 1 deletions

View File

@@ -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) {

View File

@@ -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')