瀏覽代碼

1、修改获取应急任务代码;

tags/v1.2.0^2
wanjing 1 年之前
父節點
當前提交
0564c6d1ef
共有 1 個檔案被更改,包括 3 行新增4 行删除
  1. +3
    -4
      tuoheng-admin/src/main/java/com/tuoheng/admin/service/mission/query/QueryEmergencyListService.java

+ 3
- 4
tuoheng-admin/src/main/java/com/tuoheng/admin/service/mission/query/QueryEmergencyListService.java 查看文件

@@ -94,13 +94,12 @@ public class QueryEmergencyListService {
airportIds = airportIds.substring(0, airportIds.length() - 1);

String url = CommonConfig.airportURL + SystemConstant.API_AIRPORT_STATUS_BY_AIRPORT_ID;
JSONObject jsonObject = new JSONObject();
jsonObject.put("airportIds", airportIds);
String param = "airportIds=" + airportIds;

log.info("调用机场平台,查询飞行状态: url:{}", url);
log.info("调用机场平台,查询飞行状态: jsonObject:{}", jsonObject);
log.info("调用机场平台,查询飞行状态: param:{}", param);

String airPortStatusStr = HttpUtils.doSend(url, jsonObject, null, "POST");
String airPortStatusStr = HttpUtils.sendGet(url, param);
if (StringUtils.isEmpty(airPortStatusStr)) {
log.info("调用机场平台,查询飞行状态:机场接口返回数据为空,查询飞行状态失败");
throw new ServiceException("机场接口返回数据为空,查询飞行状态失败");

Loading…
取消
儲存