diff --git a/Release/database/XNSim.db b/Release/database/XNSim.db index 8513819..eace14b 100644 Binary files a/Release/database/XNSim.db and b/Release/database/XNSim.db differ diff --git a/XNSimHtml/components/network-monitor.js b/XNSimHtml/components/network-monitor.js index b7aee06..6725373 100644 --- a/XNSimHtml/components/network-monitor.js +++ b/XNSimHtml/components/network-monitor.js @@ -18,88 +18,17 @@ class NetworkMonitor extends HTMLElement { -
-
-
网络监控
-
-
-
-
网络状态
-
- 正在开发中... -
-
-
-
流量统计
-
- 正在开发中... -
-
-
-
连接状态
-
- 正在开发中... -
-
-
-
+
`; } initialize() { - // 初始化网络监控逻辑 console.log('网络监控组件已初始化'); } reactivate() { - // 重新激活组件时的逻辑 console.log('网络监控组件已重新激活'); } } diff --git a/XNSimHtml/routes/auth.js b/XNSimHtml/routes/auth.js index 22fa398..b399bab 100644 --- a/XNSimHtml/routes/auth.js +++ b/XNSimHtml/routes/auth.js @@ -20,7 +20,7 @@ const generateToken = (user) => { position: user.position }, JWT_SECRET, - { expiresIn: '24h' } + { expiresIn: '30m' } ); }; @@ -63,7 +63,7 @@ router.post('/login', (req, res) => { httpOnly: true, secure: process.env.NODE_ENV === 'production', // 在生产环境中使用HTTPS sameSite: 'strict', - maxAge: 24 * 60 * 60 * 1000 // 24小时 + maxAge: 30 * 60 * 1000 // 30分钟 }); // 返回用户信息时排除密码字段