|
|
|
|
|
|
|
|
airportIds = airportIds.substring(0, airportIds.length() - 1); |
|
|
airportIds = airportIds.substring(0, airportIds.length() - 1); |
|
|
|
|
|
|
|
|
String url = CommonConfig.airportURL + SystemConstant.API_AIRPORT_STATUS_BY_AIRPORT_ID; |
|
|
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("调用机场平台,查询飞行状态: 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)) { |
|
|
if (StringUtils.isEmpty(airPortStatusStr)) { |
|
|
log.info("调用机场平台,查询飞行状态:机场接口返回数据为空,查询飞行状态失败"); |
|
|
log.info("调用机场平台,查询飞行状态:机场接口返回数据为空,查询飞行状态失败"); |
|
|
throw new ServiceException("机场接口返回数据为空,查询飞行状态失败"); |
|
|
throw new ServiceException("机场接口返回数据为空,查询飞行状态失败"); |