Browse Source

修改定点飞行代码

tags/v1.2.0^2
wanjing 1 year ago
parent
commit
f74ddca960
1 changed files with 11 additions and 4 deletions
  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 View File

import com.tuoheng.admin.utils.CodeUtil; import com.tuoheng.admin.utils.CodeUtil;
import com.tuoheng.common.config.CommonConfig; import com.tuoheng.common.config.CommonConfig;
import com.tuoheng.common.exception.ServiceException; 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.entity.User;
import com.tuoheng.system.utils.ShiroUtils; import com.tuoheng.system.utils.ShiroUtils;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
log.info("原无人机执行定点飞行:机场接口返回数据为空,飞行失败,jsonObject:{}", jsonObject); 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("机场平台返回,失败");
}
} }


/** /**
log.info("新无人机执行定点飞行:机场接口返回数据为空,飞行失败,jsonObject:{}", jsonObject); 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("机场平台返回,失败");
}
} }


/** /**

Loading…
Cancel
Save