提交 a1184633 authored 作者: 艾庆国's avatar 艾庆国

线路预警

上级 c0cb4f36
...@@ -403,6 +403,7 @@ public class GdService { ...@@ -403,6 +403,7 @@ public class GdService {
JSONObject item = geocodes.getJSONObject(0); JSONObject item = geocodes.getJSONObject(0);
String weather = item.getString("weather"); String weather = item.getString("weather");
log.info("天气:{}",weather);
return weather; return weather;
} }
...@@ -448,7 +449,7 @@ public class GdService { ...@@ -448,7 +449,7 @@ public class GdService {
String adcode = retJSONObject.getJSONObject("regeocode").getJSONObject("addressComponent").getString("adcode"); String adcode = retJSONObject.getJSONObject("regeocode").getJSONObject("addressComponent").getString("adcode");
if (StringUtils.isBlank(adcode)) {throw new ServiceSystemException(ResultCodeEnum.FAIL, "调用高德城市编码接口异常, result:"+resultStr);} if (StringUtils.isBlank(adcode)) {throw new ServiceSystemException(ResultCodeEnum.FAIL, "调用高德城市编码接口异常, result:"+resultStr);}
log.info("城市编码:{}",adcode);
return adcode; return adcode;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论