perf;区分token过期

This commit is contained in:
曾文豪
2023-02-27 09:54:27 +08:00
parent aee1861630
commit c3edb50e80

View File

@@ -101,7 +101,8 @@ public class TsTokenConfig {
}
if (tokenBean == null && thrExp) {
throw new ApiException(StrUtil.isEmpty(token) ? "请先登录" : "登录过期,请重新登陆");
throw new ApiException(StrUtil.isEmpty(token) ? 110 : 112,
StrUtil.isEmpty(token) ? "请先登录" : "登录过期,请重新登陆");
}
if (tokenBean == null) {