From 6e18cd2433c0c4c1f62bd913495c1f8a8691adc7 Mon Sep 17 00:00:00 2001 From: zengwh <81383286@qq.com> Date: Fri, 14 Aug 2020 09:45:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=97=A8=E6=88=B7=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E9=A1=B5=E9=9D=A2=E5=92=8C=E5=8F=B3=E4=B8=8A=E8=A7=92?= =?UTF-8?q?=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../manage/controller/LoginController.java | 9 +- .../WEB-INF/views/gatewayDir/gatewayIndex.jsp | 576 +- .../webapp/WEB-INF/views/loginDir/index.jsp | 51 +- .../webapp/static/css/gatewayPageStyles.css | 4918 +---------------- 4 files changed, 290 insertions(+), 5264 deletions(-) diff --git a/power-admin/src/main/java/com/manage/controller/LoginController.java b/power-admin/src/main/java/com/manage/controller/LoginController.java index 08928a3..d7de67c 100644 --- a/power-admin/src/main/java/com/manage/controller/LoginController.java +++ b/power-admin/src/main/java/com/manage/controller/LoginController.java @@ -154,7 +154,12 @@ public class LoginController { public String getSessionRemainingTime(HttpServletRequest request)throws Exception{ long lastAccessTime = 0L; String sessionId = request.getSession().getId(); - lastAccessTime = (long)request.getSession().getAttribute(sessionId); - return JSON.toJSONString(TOKEN_EXPIRE_TIME-(System.currentTimeMillis()-lastAccessTime)); + Object attribute = request.getSession().getAttribute(sessionId); + if(null != attribute){ + lastAccessTime = (long)attribute; + return JSON.toJSONString(TOKEN_EXPIRE_TIME-(System.currentTimeMillis()-lastAccessTime)); + }else{ + return null; + } } } diff --git a/power-admin/src/main/webapp/WEB-INF/views/gatewayDir/gatewayIndex.jsp b/power-admin/src/main/webapp/WEB-INF/views/gatewayDir/gatewayIndex.jsp index 00850ec..ed0c18c 100644 --- a/power-admin/src/main/webapp/WEB-INF/views/gatewayDir/gatewayIndex.jsp +++ b/power-admin/src/main/webapp/WEB-INF/views/gatewayDir/gatewayIndex.jsp @@ -13,143 +13,47 @@ var path = "${path}"; -<%--hhhhhhhhhhhhhhhh--%> @@ -157,17 +61,11 @@
- -