From 889b65d7ddbebb335abcfc6bc47996b0a4eb1c81 Mon Sep 17 00:00:00 2001 From: lpc <1362539351@qq.com> Date: Wed, 17 Sep 2025 14:30:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E6=8C=87=E5=AE=9A=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server2.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server2.js b/server2.js index e14101b..f66d395 100755 --- a/server2.js +++ b/server2.js @@ -66,7 +66,8 @@ app.get("/sessions", async (req, res) => { try { const { userId } = req.query; if (!userId) { - return res.status(400).json({ code: 1, error: "userId 必填" }); + // return res.status(400).json({ code: 1, error: "userId 必填" }); + return res.redirect('http://1.95.137.212/#/login'); } // 查该用户所有的会话,按最后活跃时间倒序