瀏覽代碼

修改WeatherUtil工具类

tags/v1.1.0
wanghaoran 2 年之前
父節點
當前提交
14f2fdc16d
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. +4
    -4
      tuoheng-admin/src/main/java/com/tuoheng/admin/utils/WeatherUtil.java

+ 4
- 4
tuoheng-admin/src/main/java/com/tuoheng/admin/utils/WeatherUtil.java 查看文件

@@ -9,9 +9,9 @@ public class WeatherUtil {
if(ObjectUtil.isEmpty(airWeather) ||ObjectUtil.isEmpty(airWeather.getWth())){
return "";
}
return "气温:" + airWeather.getWth().getParm().getTmp()+"℃"
+ ";湿度:" + airWeather.getWth().getParm().getHum()+"RH"
+ ";风速:" + airWeather.getWth().getParm().getWspd()+"M/S"
+ ";风向:" + airWeather.getWth().getParm().getWdir();
return "气温:" + airWeather.getWth().getParm().getTmp()/10+"℃"
+ ";湿度:" + airWeather.getWth().getParm().getHum()/10+"RH"
+ ";风速:" + airWeather.getWth().getParm().getWspd()/10+"M/S"
+ ";风向:" + airWeather.getWth().getParm().getWdir() + "°";
}
}

Loading…
取消
儲存