正在显示
3 个修改的文件
包含
7 行增加
和
9 行删除
| @@ -122,15 +122,13 @@ public class RouteRequestImpl implements RouteRequest { | @@ -122,15 +122,13 @@ public class RouteRequestImpl implements RouteRequest { | ||
| 122 | String json = response.body().string(); | 122 | String json = response.body().string(); |
| 123 | CIMServerResVO cimServerResVO = JSON.parseObject(json, CIMServerResVO.class); | 123 | CIMServerResVO cimServerResVO = JSON.parseObject(json, CIMServerResVO.class); |
| 124 | 124 | ||
| 125 | - //重复登录 | ||
| 126 | - if (cimServerResVO.getCode().equals(StatusEnum.REPEAT_LOGIN.getCode())){ | 125 | + //重复失败 |
| 126 | + if (!cimServerResVO.getCode().equals(StatusEnum.SUCCESS.getCode())){ | ||
| 127 | LOGGER.error(appConfiguration.getUserName() + ":" + StatusEnum.REPEAT_LOGIN.getMessage()); | 127 | LOGGER.error(appConfiguration.getUserName() + ":" + StatusEnum.REPEAT_LOGIN.getMessage()); |
| 128 | System.exit(-1); | 128 | System.exit(-1); |
| 129 | } | 129 | } |
| 130 | 130 | ||
| 131 | - if (!cimServerResVO.getCode().equals(StatusEnum.SUCCESS.getCode())){ | ||
| 132 | - throw new RuntimeException("route server exception code=" + cimServerResVO.getCode()) ; | ||
| 133 | - } | 131 | + |
| 134 | 132 | ||
| 135 | return cimServerResVO.getDataBody(); | 133 | return cimServerResVO.getDataBody(); |
| 136 | } | 134 | } |
| 1 | -spring.application.name=netty-heartbeat-client | 1 | +spring.application.name=cim-client |
| 2 | 2 | ||
| 3 | # web port | 3 | # web port |
| 4 | server.port=8082 | 4 | server.port=8082 |
| @@ -37,8 +37,8 @@ cim.server.online.user.url=http://45.78.28.220:8083/onlineUser | @@ -37,8 +37,8 @@ cim.server.online.user.url=http://45.78.28.220:8083/onlineUser | ||
| 37 | #cim.server.online.user=http://localhost:8083/onlineUser | 37 | #cim.server.online.user=http://localhost:8083/onlineUser |
| 38 | 38 | ||
| 39 | # 客户端唯一ID | 39 | # 客户端唯一ID |
| 40 | -cim.user.id=1545574841528 | ||
| 41 | -cim.user.userName=zhangsan | 40 | +cim.user.id=1545574871141 |
| 41 | +cim.user.userName=crossoverJie | ||
| 42 | 42 | ||
| 43 | # 回调线程队列大小 | 43 | # 回调线程队列大小 |
| 44 | cim.callback.thread.queue.size = 2 | 44 | cim.callback.thread.queue.size = 2 |
| @@ -25,7 +25,7 @@ public enum StatusEnum { | @@ -25,7 +25,7 @@ public enum StatusEnum { | ||
| 25 | OFF_LINE("7000", "你选择的账号不在线,请重新选择!"), | 25 | OFF_LINE("7000", "你选择的账号不在线,请重新选择!"), |
| 26 | 26 | ||
| 27 | /** 登录信息不匹配 */ | 27 | /** 登录信息不匹配 */ |
| 28 | - ACCOUNT_NOT_MATCH("9000", "登录信息不匹配!"), | 28 | + ACCOUNT_NOT_MATCH("9100", "登录信息不匹配!"), |
| 29 | 29 | ||
| 30 | /** 请求限流 */ | 30 | /** 请求限流 */ |
| 31 | REQUEST_LIMIT("6000", "请求限流"), | 31 | REQUEST_LIMIT("6000", "请求限流"), |
-
请 注册 或 登录 后发表评论