|
|
@@ -160,13 +160,13 @@ public class AccidentVerifyService { |
|
|
|
String airPortStr = HttpUtils.doSend(url, jsonObject, null, "POST"); |
|
|
|
if (StringUtils.isEmpty(airPortStr)) { |
|
|
|
log.info("调用机场平台,无人机执行定点飞行:返回数据为空,飞行失败,jsonObject:{}", jsonObject); |
|
|
|
// throw new ServiceException("机场平台返回数据为空,飞行失败"); |
|
|
|
throw new ServiceException("机场平台返回数据为空,飞行失败"); |
|
|
|
} |
|
|
|
|
|
|
|
JsonResult jsonResult = JacksonUtil.json2pojo(airPortStr, JsonResult.class); |
|
|
|
if (0 != jsonResult.getCode()) { |
|
|
|
log.info("调用机场平台,无人机执行定点飞行:飞行失败,jsonResult:{}", jsonResult.getMsg()); |
|
|
|
// throw new ServiceException("机场平台返回,飞行失败"); |
|
|
|
throw new ServiceException("机场平台返回,飞行失败"); |
|
|
|
} |
|
|
|
} |
|
|
|
|