| | |
| | | String requestType = resultBody.getString("requestType"); |
| | | Integer requestId = resultHeader.getInteger("requestId"); |
| | | if (requestType.equals("init")) { |
| | | removeIdx = i;//此数据已经处理,从结果集中剔除 |
| | | Integer code = resultBody.getInteger("code"); |
| | | //小车复位请求 |
| | | ShuttleCommand initCommand = getInitCommand(requestId, code); |
| | | //发出请求 |
| | | NyShuttleHttpCommand httpCommand = JSON.parseObject(initCommand.getBody(), NyShuttleHttpCommand.class); |
| | | JSONObject requestResult = requestCommand(httpCommand); |
| | | |
| | | removeIdx = i;//此数据已经处理,从结果集中剔除 |
| | | |
| | | log.info(MessageFormat.format("【{0}】四向车复位上报 ===>> [code:{1}] [ip:{2}] [port:{3}]", slave.getId(), code, slave.getIp(), slave.getPort())); |
| | | OutputQueue.SHUTTLE.offer(MessageFormat.format("【{0}】四向车复位上报 ===>> [code:{1}] [ip:{2}] [port:{3}]", slave.getId(), code, slave.getIp(), slave.getPort())); |