This commit is contained in:
Yutousama 2020-03-06 17:37:18 +08:00
parent 6b5d50dd40
commit 6cdb5976b5
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@
</parent> </parent>
<groupId>com.yutou</groupId> <groupId>com.yutou</groupId>
<artifactId>tools</artifactId> <artifactId>tools</artifactId>
<version>1.0.2</version> <version>1.0.3</version>
<name>tools</name> <name>tools</name>
<description>Demo project for Spring Boot</description> <description>Demo project for Spring Boot</description>

View File

@ -28,7 +28,7 @@ public class APIFilter implements Filter {
//((HttpServletResponse)servletResponse).sendRedirect("/"); //((HttpServletResponse)servletResponse).sendRedirect("/");
//return; //return;
} }
if (token!=null&&keyDao.selectByKey(token)!=null) { if (token==null||keyDao.selectByKey(token)==null) {
System.out.println("token验证不通过:" + token); System.out.println("token验证不通过:" + token);
//return; //return;
} }