|
|
@@ -222,9 +222,11 @@ public class ThInspectionServiceImpl extends BaseServiceImpl<ThInspectionMapper, |
|
|
|
String url = CommonConfig.airportURL + "/api/airportInterface/getWeather"; |
|
|
|
String param = "airportId=" + airportId; |
|
|
|
String weatherStr = HttpUtils.sendGet(url, param); |
|
|
|
log.info("获取天气信息,weatherStr={}", weatherStr); |
|
|
|
JsonResult jsonResult; |
|
|
|
try { |
|
|
|
jsonResult = JacksonUtil.json2pojo(weatherStr, JsonResult.class); |
|
|
|
log.info("获取天气信息,jsonResult={}", jsonResult); |
|
|
|
if (ObjectUtil.isEmpty(jsonResult) || Objects.requireNonNull(jsonResult).getCode() != 0) { |
|
|
|
log.info("获取天气信息失败,返回为空或code不为0"); |
|
|
|
log.info("获取天气信息失败,url={}", url); |