|
@@ -75,10 +75,10 @@ public class AuthInterceptor implements HandlerInterceptor {
|
|
if (Objects.isNull(tbSession)) {
|
|
if (Objects.isNull(tbSession)) {
|
|
throw new BusinessException(ExceptionResultEnum.LOGIN_NO);
|
|
throw new BusinessException(ExceptionResultEnum.LOGIN_NO);
|
|
} else {
|
|
} else {
|
|
- log.error("info.validate(tbSession.getAccessToken():{}", info.validate(tbSession.getAccessToken()));
|
|
|
|
- log.error("info.getTimestamp() < tbSession.getExpireTime():{}", info.getTimestamp() < tbSession.getExpireTime());
|
|
|
|
- log.error("platform.name().equalsIgnoreCase(tbSession.getPlatform()):{}", platform.name().equalsIgnoreCase(tbSession.getPlatform()));
|
|
|
|
- log.error("Objects.equals(deviceId, tbSession.getDeviceId()):{}", Objects.equals(deviceId, tbSession.getDeviceId()));
|
|
|
|
|
|
+ log.info("info.validate(tbSession.getAccessToken():{}", info.validate(tbSession.getAccessToken()));
|
|
|
|
+ log.info("info.getTimestamp() < tbSession.getExpireTime():{}", info.getTimestamp() < tbSession.getExpireTime());
|
|
|
|
+ log.info("platform.name().equalsIgnoreCase(tbSession.getPlatform()):{}", platform.name().equalsIgnoreCase(tbSession.getPlatform()));
|
|
|
|
+ log.info("Objects.equals(deviceId, tbSession.getDeviceId()):{}", Objects.equals(deviceId, tbSession.getDeviceId()));
|
|
if (info.validate(tbSession.getAccessToken()) && info.getTimestamp() < tbSession.getExpireTime()
|
|
if (info.validate(tbSession.getAccessToken()) && info.getTimestamp() < tbSession.getExpireTime()
|
|
&& platform.name().equalsIgnoreCase(tbSession.getPlatform()) && Objects.equals(deviceId, tbSession.getDeviceId())) {
|
|
&& platform.name().equalsIgnoreCase(tbSession.getPlatform()) && Objects.equals(deviceId, tbSession.getDeviceId())) {
|
|
userId = Long.parseLong(tbSession.getIdentity());
|
|
userId = Long.parseLong(tbSession.getIdentity());
|
|
@@ -126,11 +126,11 @@ public class AuthInterceptor implements HandlerInterceptor {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- log.error("SignatureInfo info is null");
|
|
|
|
|
|
+ log.info("SignatureInfo info is null");
|
|
throw new BusinessException(ExceptionResultEnum.AUTHORIZATION_ERROR);
|
|
throw new BusinessException(ExceptionResultEnum.AUTHORIZATION_ERROR);
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- log.error("SystemConstant.expire(timestamp.longValue())", SystemConstant.expire(timestamp.longValue()));
|
|
|
|
|
|
+ log.info("SystemConstant.expire(timestamp.longValue())", SystemConstant.expire(timestamp.longValue()));
|
|
throw new BusinessException(ExceptionResultEnum.AUTHORIZATION_ERROR);
|
|
throw new BusinessException(ExceptionResultEnum.AUTHORIZATION_ERROR);
|
|
}
|
|
}
|
|
response.setStatus(ExceptionResultEnum.SUCCESS.getCode());
|
|
response.setStatus(ExceptionResultEnum.SUCCESS.getCode());
|