e81a4e58 by chentao

no message

1 parent 51e3a1ee
...@@ -59,13 +59,13 @@ public class SaTokenConfig implements WebMvcConfigurer { ...@@ -59,13 +59,13 @@ public class SaTokenConfig implements WebMvcConfigurer {
59 // 检查是否登录 是否有token 59 // 检查是否登录 是否有token
60 SaRequest request = SaHolder.getRequest(); 60 SaRequest request = SaHolder.getRequest();
61 String token = request.getHeader("token"); 61 String token = request.getHeader("token");
62 System.out.println("token:"+token); 62 log.info("token:"+token);
63 if(StringUtils.isNotBlank(token)) { 63 if(StringUtils.isNotBlank(token)) {
64 String timestamp = EncryptUtils.decryptByAes(token); 64 String timestamp = EncryptUtils.decryptByAes(token);
65 System.out.println("timestamp:"+timestamp); 65 log.info("timestamp:"+timestamp);
66 long time = System.currentTimeMillis(); 66 long time = System.currentTimeMillis();
67 long period = time-Long.valueOf(timestamp); 67 long period = time-Long.valueOf(timestamp);
68 System.out.println("period:"+period); 68 log.info("period:"+period);
69 if(period<=60000 && period>=0){ 69 if(period<=60000 && period>=0){
70 70
71 } 71 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!