Quellcode durchsuchen

更新1.6.0,fix null4

xiewj vor 1 Jahr
Ursprung
Commit
59632a7285

+ 2 - 2
720yun_fd_manage/gis_service/src/main/java/com/gis/service/impl/WorkServiceImpl.java

@@ -1077,7 +1077,7 @@ public class WorkServiceImpl extends IBaseStrServiceImpl<WorkEntity, String> imp
                             JSONObject earth = customMask.getJSONObject("earth");
                             JSONObject sky = customMask.getJSONObject("sky");
                             JSONObject customMaskJson = new JSONObject();
-                            if (earth.containsKey("icon")&&StrUtil.isNotEmpty(earth.getString("icon"))) {
+                            if (earth.containsKey("icon")) {
                                 earth.put("antidistorted", true);
                                 earth.put("scale", 1);
                                 customMaskJson.put("earth", earth);
@@ -1091,7 +1091,7 @@ public class WorkServiceImpl extends IBaseStrServiceImpl<WorkEntity, String> imp
                                 customMaskJson.put("earth", earth);
                             }
 
-                            if (sky.containsKey("icon")&&StrUtil.isNotEmpty(sky.getString("icon"))) {
+                            if (sky.containsKey("icon")) {
                                 sky.put("antidistorted", true);
                                 sky.put("scale", 1);
                                 customMaskJson.put("sky", sky);