fix: token名字改成 zt-token

This commit is contained in:
xiang2lin 2024-09-26 10:20:08 +08:00
parent 9226681f78
commit bd8f7e8a88
3 changed files with 7 additions and 7 deletions

View File

@ -122,7 +122,7 @@ public class LoginServiceImpl implements ILoginService {
List<SysOrganEntity> sysOrganEntities = sysOrganDao.queryUserCompany(sysOrganEntity); List<SysOrganEntity> sysOrganEntities = sysOrganDao.queryUserCompany(sysOrganEntity);
//返回值 //返回值
JSONObject res = new JSONObject(); JSONObject res = new JSONObject();
res.put("token", token); res.put("zt-token", token);
res.put("userInfo", sysUserEntity); res.put("userInfo", sysUserEntity);
res.put("company", sysOrganEntities); res.put("company", sysOrganEntities);

View File

@ -128,8 +128,8 @@ public class EntranceServiceImpl implements IEntranceService {
//} //}
// 接口权限验证 结束 // 接口权限验证 结束
} catch (NotLoginException e) { } catch (NotLoginException e) {
logger.error("token无效"); logger.error("zt-token无效");
return BaseResult.getFailureMessageEntity("token无效"); return BaseResult.getFailureMessageEntity("zt-token无效");
} }
} }
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();

View File

@ -63,13 +63,13 @@ public class ExceptionController {
if (notLoginException.getType().equals(NotLoginException.NOT_TOKEN)) { if (notLoginException.getType().equals(NotLoginException.NOT_TOKEN)) {
message = "未提供token"; message = "未提供token";
} else if (notLoginException.getType().equals(NotLoginException.INVALID_TOKEN)) { } else if (notLoginException.getType().equals(NotLoginException.INVALID_TOKEN)) {
message = "token无效"; message = "zt-token无效";
} else if (notLoginException.getType().equals(NotLoginException.TOKEN_TIMEOUT)) { } else if (notLoginException.getType().equals(NotLoginException.TOKEN_TIMEOUT)) {
message = "token已过期"; message = "zt-token已过期";
} else if (notLoginException.getType().equals(NotLoginException.BE_REPLACED)) { } else if (notLoginException.getType().equals(NotLoginException.BE_REPLACED)) {
message = "token已被顶下线"; message = "zt-token已被顶下线";
} else if (notLoginException.getType().equals(NotLoginException.KICK_OUT)) { } else if (notLoginException.getType().equals(NotLoginException.KICK_OUT)) {
message = "token已被踢下线"; message = "zt-token已被踢下线";
} else { } else {
message = "当前会话未登录"; message = "当前会话未登录";
} }