| | |
| | | } |
| | | } |
| | | } |
| | | if (jsonNode.has("cover_state")) { |
| | | Integer coverState = jsonNode.get("cover_state").asInt(); |
| | | if(coverState != null && (coverState == 1 || coverState == 0)) { |
| | | // 执行0和1的互转逻辑,结果赋值给变量(保持Integer类型) |
| | | Integer newCoverState = coverState == 0 ? 1 : 0; |
| | | _deviceService.setRedisCameraPosition(device.getDeviceSn(), newCoverState); |
| | | } |
| | | } |
| | | // if (jsonNode.has("cover_state")) { |
| | | // //实时监控机场内外舱盖状态 |
| | | // Integer coverState = jsonNode.get("cover_state").asInt(); |
| | | // if(coverState != null && (coverState == 1 || coverState == 0)) { |
| | | // // 执行0和1的互转逻辑,结果赋值给变量(保持Integer类型) |
| | | // Integer newCoverState = coverState == 0 ? 1 : 0; |
| | | // _deviceService.setRedisCameraPosition(device.getDeviceSn(), newCoverState); |
| | | // } |
| | | // } |
| | | receiver.setType(MessageType.STATUS.getType() + "-network"); |
| | | } else if (dockOsdData.contains("job_number")) { |
| | | receiver.setType(MessageType.STATUS.getType() + "-job"); |