修改日志

This commit is contained in:
孙小云 2026-03-24 13:27:00 +08:00
parent b7825ab099
commit 135402e725
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
package com.ruoyi.device.service.impl;
import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.JSONObject;
import com.ruoyi.device.domain.impl.tuohengmqtt.callback.IAirportFlyControlCallback;
import com.ruoyi.device.domain.impl.tuohengmqtt.callback.IAirportFlyControlDataCallback;
@ -143,7 +144,8 @@ public class FlightEventCallback implements IAirportFlyControlCallback, IAirport
// 检查是否自检失败code=1 表示失败
if (code != null && (code == 1 || code == -1)) {
log.info("无人机起飞失败【FlightEventCallback】检测到自检失败(code=1)更新状态为ERROR: deviceSn={}, flightId={} msg {}", deviceSn, taskId, msg);
log.info("无人机起飞失败【FlightEventCallback】检测到自检失败(code=1)更新状态为ERROR: deviceSn={}, flightId={} msg {}",
deviceSn, taskId, JSON.toJSONString(data));
flightService.updateFlightStatus(taskId, TaskResultVO.Error("handleControlDataMessage 检测到自检失败(code=1)"));
}
}