From 94e3575d6878bbe415609f0c1840d05685001086 Mon Sep 17 00:00:00 2001 From: lpc <1362539351@qq.com> Date: Wed, 17 Sep 2025 15:05:27 +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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server2.js b/server2.js index b840c21..8a01a82 100755 --- a/server2.js +++ b/server2.js @@ -65,7 +65,7 @@ app.get("/test-db", async (req, res) => { app.get("/sessions", async (req, res) => { try { const { userId } = req.query; - if (!userId) { + if (!userId || userId === "NaN" || isNaN(Number(userId))) { // return res.status(400).json({ code: 1, error: "userId 必填" }); return res.redirect('http://1.95.137.212/#/login?redirect=%2Findex&goRemote=1'); }