浏览代码

Merge branch 'develop' of gitadmin/tuoheng_lc into release

tags/v1.2.0^2
wanjing 1年前
父节点
当前提交
1d7941b8fa
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/ThInspectionServiceImpl.java

+ 2
- 0
tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/ThInspectionServiceImpl.java 查看文件

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

正在加载...
取消
保存