diff --git a/pom.xml b/pom.xml index ae4232b..d7ebb90 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ com.yutou tools - 1.0.2 + 1.0.3 tools Demo project for Spring Boot diff --git a/src/main/java/com/yutou/tools/utils/APIFilter.java b/src/main/java/com/yutou/tools/utils/APIFilter.java index a3713bc..094369c 100644 --- a/src/main/java/com/yutou/tools/utils/APIFilter.java +++ b/src/main/java/com/yutou/tools/utils/APIFilter.java @@ -28,7 +28,7 @@ public class APIFilter implements Filter { //((HttpServletResponse)servletResponse).sendRedirect("/"); //return; } - if (token!=null&&keyDao.selectByKey(token)!=null) { + if (token==null||keyDao.selectByKey(token)==null) { System.out.println("token验证不通过:" + token); //return; }