hejinbo пре 2 година
родитељ
комит
7c665da605

+ 4
- 4
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java Прегледај датотеку

2844
             return AjaxResult.error("请选择要上传的文件");
2844
             return AjaxResult.error("请选择要上传的文件");
2845
         }
2845
         }
2846
         UUID uuid = UUID.randomUUID();
2846
         UUID uuid = UUID.randomUUID();
2847
-        //String targetPath = "/home/ruoyi/uploadPath/upload/unzipFile/"+uuid+ "/";
2848
-        String targetPath = "D:/home/unzip/" + uuid + "/";
2847
+        String targetPath = "/home/ruoyi/uploadPath/upload/unzipFile/"+uuid+ "/";
2848
+       // String targetPath = "D:/home/unzip/" + uuid + "/";
2849
         File zipFile = null;
2849
         File zipFile = null;
2850
         InputStream ins = null;
2850
         InputStream ins = null;
2851
         try {
2851
         try {
2852
             ins = file.getInputStream();
2852
             ins = file.getInputStream();
2853
             //上传的压缩包保存的路径
2853
             //上传的压缩包保存的路径
2854
-            //String savePath = "/home/ruoyi/uploadPath/upload/zipFile/";
2855
-            String savePath = "D:/home/zipFile/";
2854
+            String savePath = "/home/ruoyi/uploadPath/upload/zipFile/";
2855
+          //  String savePath = "D:/home/zipFile/";
2856
             String saveName = uuid + "_" + file.getOriginalFilename();
2856
             String saveName = uuid + "_" + file.getOriginalFilename();
2857
             zipFile = new File(savePath + saveName);
2857
             zipFile = new File(savePath + saveName);
2858
             inputChangeToFile(ins, zipFile);
2858
             inputChangeToFile(ins, zipFile);