zhaowenyu
2025-12-16 f1369957f739d58f1ba8426910fa4fd25012a77f
ard-sample/src/main/java/com/ard/sample/manage/service/impl/DockOSDServiceImpl.java
@@ -85,15 +85,15 @@
                            }
                        }
                    }
                    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");