From 8aef28e39575b910aa08c0c102c868d60fb306ea Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期六, 11 七月 2020 16:10:42 +0800
Subject: [PATCH] Merge branch 'dev' of https://gitee.com/luxiaotao1123/zy-asrs

---
 src/main/java/com/zy/common/config/AdminInterceptor.java |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/java/com/zy/common/config/AdminInterceptor.java b/src/main/java/com/zy/common/config/AdminInterceptor.java
index a727bce..07b18d7 100644
--- a/src/main/java/com/zy/common/config/AdminInterceptor.java
+++ b/src/main/java/com/zy/common/config/AdminInterceptor.java
@@ -96,8 +96,8 @@
             User user = userService.selectById(userLogin.getUserId());
             String deToken = Cools.deTokn(token, user.getPassword());
             long timestamp = Long.parseLong(deToken.substring(0, 13));
-            // 1澶╁悗杩囨湡
-            if (System.currentTimeMillis() - timestamp > 86400000){
+            // 15鍒嗛挓鍚庤繃鏈�
+            if (System.currentTimeMillis() - timestamp > 900000){
                 Http.response(response, BaseRes.DENIED);
                 return false;
             }
@@ -144,7 +144,7 @@
     /**
      * 璺ㄥ煙
      */
-    private void cors(HttpServletResponse response){
+    public static void cors(HttpServletResponse response){
         // 璺ㄥ煙璁剧疆
         response.setHeader("Access-Control-Allow-Origin", "*");
         response.setHeader("Access-Control-Allow-Credentials", "true");

--
Gitblit v1.9.1