From a508244540882ef8fac66fb75e2e956ac5e22128 Mon Sep 17 00:00:00 2001 From: Seven <1530011482@qq.com> Date: Sat, 12 Sep 2026 15:50:58 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E7=99=BB=E5=BD=95=E8=BF=87?= =?UTF-8?q?=E6=9C=9F=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/user.js | 2 +- utils/jwt.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/user.js b/routes/user.js index f41571a..ddbca14 100644 --- a/routes/user.js +++ b/routes/user.js @@ -5,7 +5,7 @@ const authMiddleware = require("../middleware/authMiddleware"); // 获取用户信息 router.get( - "/user/info", + "/userInfo", authMiddleware, (req, res) => { res.json({ diff --git a/utils/jwt.js b/utils/jwt.js index 5aac1e9..ec297d4 100644 --- a/utils/jwt.js +++ b/utils/jwt.js @@ -7,7 +7,7 @@ function createToken(payload){ payload, secret, { - expiresIn:"2min" + expiresIn:"10min" } ); }