|
@@ -40,7 +40,7 @@ public class LoginInterceptor extends HandlerInterceptorAdapter {
|
|
|
}
|
|
|
String token = cacheService.queryTokenCache(userId);
|
|
|
if (StringUtils.isEmpty(authorization) || StringUtils.isEmpty(userId) || StringUtils.isEmpty(token)) {
|
|
|
- response.sendError(HttpStatus.UNAUTHORIZED.value(), null);
|
|
|
+ response.sendError(HttpStatus.UNAUTHORIZED.value(), "身份验证失效,请重新登录!");
|
|
|
return false;
|
|
|
}
|
|
|
String tokenDec = AesUtil.decoder(token, "token", null);
|