liuyc 2 년 전
부모
커밋
dd1188cb6b
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      blade-service/blade-manager/src/main/java/org/springblade/manager/controller/TextdictInfoController.java

+ 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 + ")";