Browse Source

优化天气服务 天气情况判断逻辑

develop
zhaoxianglong 4 months ago
parent
commit
4b38e21310
  1. 2
      zc-business/src/main/java/com/zc/business/controller/WeatherForecastController.java

2
zc-business/src/main/java/com/zc/business/controller/WeatherForecastController.java

@ -263,7 +263,7 @@ public class WeatherForecastController extends BaseController {
JSONObject jsonObject = (JSONObject) JSON.toJSON(data.get(i));
String pre = jsonObject.getString("pre");
if (Objects.equals(pre, UniversalEnum.ZERO.getValue())) {
if (Objects.equals(pre, UniversalEnum.ZERO.getValue())||Double.parseDouble(pre)==UniversalEnum.ZERO.getNumber()) {
String visLevel = jsonObject.getString("visLevel");

Loading…
Cancel
Save