mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-11-10 03:03:44 +08:00
update 过滤离线用户
This commit is contained in:
@@ -59,8 +59,6 @@ public class GlobalExceptionHandler {
|
||||
@ExceptionHandler(NotLoginException.class)
|
||||
public AjaxResult<Void> handleAccessDeniedException(NotLoginException e, HttpServletRequest request) {
|
||||
String requestURI = request.getRequestURI();
|
||||
String token = e.getMessage().split(":")[1];
|
||||
StpUtil.kickoutByTokenValue(token);
|
||||
log.error("请求地址'{}',认证失败'{}',无法访问系统资源", requestURI, e.getMessage());
|
||||
return AjaxResult.error(HttpStatus.HTTP_UNAUTHORIZED, StringUtils.format("请求地址'{}',认证失败'{}',无法访问系统资源", requestURI));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user