zhaowenyu
2026-04-01 342236a5694a22c544a217c9f1503e5ac790b609
ard-sample/src/main/java/com/ard/sample/manage/service/impl/DockOSDServiceImpl.java
@@ -86,13 +86,16 @@
                        }
                    }
                    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);
                        }
                        // 舱盖状态存redis
                        RedisOpsUtils.set(RedisConst.COVER_STATE_OSD_PREFIX + device.getDeviceSn(), jsonNode.get("cover_state").asInt());
//                        //实时监控机场内外舱盖状态
//                        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")) {