fix: token名字改成 zt-token
This commit is contained in:
parent
9226681f78
commit
bd8f7e8a88
|
@ -122,7 +122,7 @@ public class LoginServiceImpl implements ILoginService {
|
|||
List<SysOrganEntity> sysOrganEntities = sysOrganDao.queryUserCompany(sysOrganEntity);
|
||||
//返回值
|
||||
JSONObject res = new JSONObject();
|
||||
res.put("token", token);
|
||||
res.put("zt-token", token);
|
||||
res.put("userInfo", sysUserEntity);
|
||||
res.put("company", sysOrganEntities);
|
||||
|
||||
|
|
|
@ -128,8 +128,8 @@ public class EntranceServiceImpl implements IEntranceService {
|
|||
//}
|
||||
// 接口权限验证 结束
|
||||
} catch (NotLoginException e) {
|
||||
logger.error("token无效");
|
||||
return BaseResult.getFailureMessageEntity("token无效");
|
||||
logger.error("zt-token无效");
|
||||
return BaseResult.getFailureMessageEntity("zt-token无效");
|
||||
}
|
||||
}
|
||||
JSONObject jsonObject = new JSONObject();
|
||||
|
|
|
@ -63,13 +63,13 @@ public class ExceptionController {
|
|||
if (notLoginException.getType().equals(NotLoginException.NOT_TOKEN)) {
|
||||
message = "未提供token";
|
||||
} else if (notLoginException.getType().equals(NotLoginException.INVALID_TOKEN)) {
|
||||
message = "token无效";
|
||||
message = "zt-token无效";
|
||||
} else if (notLoginException.getType().equals(NotLoginException.TOKEN_TIMEOUT)) {
|
||||
message = "token已过期";
|
||||
message = "zt-token已过期";
|
||||
} else if (notLoginException.getType().equals(NotLoginException.BE_REPLACED)) {
|
||||
message = "token已被顶下线";
|
||||
message = "zt-token已被顶下线";
|
||||
} else if (notLoginException.getType().equals(NotLoginException.KICK_OUT)) {
|
||||
message = "token已被踢下线";
|
||||
message = "zt-token已被踢下线";
|
||||
} else {
|
||||
message = "当前会话未登录";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue