修改token过期时间
parent
659fee7072
commit
826576c3e1
2
ruoyi
2
ruoyi
|
|
@ -1 +1 @@
|
|||
Subproject commit 16e1fc95534519a06bc1dca0df64ffceeb3c9931
|
||||
Subproject commit 0558928c522bdda5a1c3ae88ace3f4970ad3ed33
|
||||
|
|
@ -24,7 +24,7 @@ public class MyE500UnknownExceptionResolver extends E500UnknownExceptionResolver
|
|||
public R<String> resolve(Exception exception) {
|
||||
log.error("系统未知异常,错误信息: " + exception.getMessage(), exception);
|
||||
if (exception instanceof AccessDeniedException || exception.getMessage().contains("获取用户信息异常")) {
|
||||
return R.error(401, "登录状态失效,请重新登录");
|
||||
return R.error(405, "登录状态失效,请重新登录");
|
||||
}
|
||||
return R.error(500, "系统未知异常,错误信息: " + exception.getMessage());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue