Przeglądaj źródła

修改定点飞行代码

tags/v1.2.0^2
wanjing 1 rok temu
rodzic
commit
f74ddca960
1 zmienionych plików z 11 dodań i 4 usunięć
  1. +11
    -4
      tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/airport/PointFlightService.java

+ 11
- 4
tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/airport/PointFlightService.java Wyświetl plik

@@ -18,10 +18,7 @@ import com.tuoheng.admin.mapper.WarningRecordMapper;
import com.tuoheng.admin.utils.CodeUtil;
import com.tuoheng.common.config.CommonConfig;
import com.tuoheng.common.exception.ServiceException;
import com.tuoheng.common.utils.DateUtils;
import com.tuoheng.common.utils.HttpUtils;
import com.tuoheng.common.utils.JsonResult;
import com.tuoheng.common.utils.StringUtils;
import com.tuoheng.common.utils.*;
import com.tuoheng.system.entity.User;
import com.tuoheng.system.utils.ShiroUtils;
import lombok.extern.slf4j.Slf4j;
@@ -228,6 +225,11 @@ public class PointFlightService {
log.info("原无人机执行定点飞行:机场接口返回数据为空,飞行失败,jsonObject:{}", jsonObject);
throw new ServiceException("机场接口返回数据为空,飞行失败");
}
JsonResult jsonResult = JacksonUtil.json2pojo(airPortStr, JsonResult.class);
if (0 != jsonResult.getCode()) {
log.info("原无人机执行定点飞行,机场接口返回:失败,jsonResult:{}", jsonResult.getMsg());
throw new ServiceException("机场平台返回,失败");
}
}

/**
@@ -255,6 +257,11 @@ public class PointFlightService {
log.info("新无人机执行定点飞行:机场接口返回数据为空,飞行失败,jsonObject:{}", jsonObject);
throw new ServiceException("机场接口返回数据为空,飞行失败");
}
JsonResult jsonResult = JacksonUtil.json2pojo(airPortStr, JsonResult.class);
if (0 != jsonResult.getCode()) {
log.info("新无人机执行定点飞行,机场接口返回:失败,jsonResult:{}", jsonResult.getMsg());
throw new ServiceException("机场平台返回,失败");
}
}

/**

Ładowanie…
Anuluj
Zapisz