xiewj 5 miesięcy temu
rodzic
commit
833f668b33

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

@@ -1873,8 +1873,11 @@ public class WorkServiceImpl extends ServiceImpl<WorkMapper, WorkEntity> impleme
                 content.put(setTypeMapping.get(hotspotType), resJson);
             }
         }
-
-        workHot.setContent(content.toJSONString().replace("\\\"","\""));
+        if (hotspotType.equalsIgnoreCase("textarea")){
+            workHot.setContent(content.toJSONString());
+        }else {
+            workHot.setContent(content.toJSONString().replace("\\\"","\""));
+        }
     }
     public static boolean isJSONValid(String test) {
         try {