liuyc 2 жил өмнө
parent
commit
dd1188cb6b

+ 5 - 2
blade-service/blade-manager/src/main/java/org/springblade/manager/controller/TextdictInfoController.java

@@ -427,7 +427,9 @@ public class TextdictInfoController extends BladeController {
         File writeFile = new File(wbsTreePrivate.getHtmlUrl());
         FileUtil.writeToFile(writeFile, doc.html(), Boolean.parseBoolean("UTF-8"));
 
-        String replace = wbsTreePrivate.getHtmlUrl().replace("\\", "\\\\");
+        String str1 = wbsTreePrivate.getHtmlUrl().replace("Desktop//privateUrl", "Desktop/privateUrl");
+
+        String replace = str1.replace("\\", "\\\\");
 
         //修改所有节点的htmlUrl
         String updateSql = "update m_wbs_tree_private set html_url = '" + replace + "' where p_key_id in (" + ids + ")";
@@ -529,7 +531,8 @@ public class TextdictInfoController extends BladeController {
             FileUtil.writeToFile(writeFile, doc.html(), Boolean.parseBoolean("UTF-8"));
         }
 
-        String replace = wbsTreePrivate.getHtmlUrl().replace("\\", "\\\\");
+        String str1 = wbsTreePrivate.getHtmlUrl().replace("Desktop//privateUrl", "Desktop/privateUrl");
+        String replace = str1.replace("\\", "\\\\");
 
         //修改所有节点的htmlUrl
         String updateSql = "update m_wbs_tree_private set html_url = '" + replace + "' where p_key_id in (" + ids + ")";