jinpengyong
2020-09-17 8b0501f73b6d92b611c7df74535566f65faa7d7b
update
1 files modified
14 ■■■■ changed files
src/main/java/com/moral/service/impl/WeatherServiceImpl.java 14 ●●●● patch | view | raw | blame | history
src/main/java/com/moral/service/impl/WeatherServiceImpl.java
@@ -744,9 +744,17 @@
                map.put("COC", map.get("CO").toString());
                map.remove("CO");
            }
            if ((!map.containsKey("PM25C")) && map.containsKey("PM2_5")) {
                map.put("PM25C", map.get("PM2_5").toString().replace("\\.", ""));
                map.remove("PM2_5");
            if ((!map.containsKey("PM25C")) && (map.containsKey("PM2_5")||map.containsKey("PM25"))) {
                if (map.get("PM2_5") != null) {
                    map.put("PM25C", map.get("PM2_5").toString().replace("\\.", ""));
                    map.remove("PM2_5");
                    break;
                }
                if(map.get("PM25") != null){
                    map.put("PM25C", map.get("PM25").toString().replace("\\.", ""));
                    map.remove("PM25");
                    break;
                }
            }
            if ((!map.containsKey("PM10C")) && map.containsKey("PM10")) {
                map.put("PM10C", map.get("PM10").toString().replace("\\.", ""));