e81a4e58 by chentao

no message

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