2025-12-10 zwy 在切换无人机摄像头时,因为无人机不支持红外,切换失败,修改提示内容为“325003000,指令响应失败,请确认无人机是否支持此功能。”
1 files modified
5 ■■■■■ changed files
ard-sample/src/main/java/com/ard/sample/manage/service/impl/LiveStreamServiceImpl.java 5 ●●●●● patch | view | raw | blame | history
ard-sample/src/main/java/com/ard/sample/manage/service/impl/LiveStreamServiceImpl.java
@@ -246,6 +246,11 @@
        ServiceReply receiveReply = this.publishLiveLensChange(respTopic, liveParam);
        if (ResponseResult.CODE_SUCCESS != receiveReply.getResult()) {
            Integer code = receiveReply.getResult();
            if(code == 325003) {
                // 指令响应失败,请重试. 经查询官网,机场3为低配,飞行器不支持红外
                return ResponseResult.error(325003000,LiveErrorEnum.COMMAND_FAILED.getErrorMsg()+"请确认无人机是否支持此功能!");
            }
            return ResponseResult.error(LiveErrorEnum.find(receiveReply.getResult()));
        }