no message
Showing
1 changed file
with
3 additions
and
3 deletions
| ... | @@ -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 | } | ... | ... |
-
Please register or sign in to post a comment