|
|
@@ -394,8 +394,8 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
394
|
394
|
return AjaxResult.error("请选择要上传的文件");
|
|
395
|
395
|
}
|
|
396
|
396
|
// todo 服务器上要放开
|
|
397
|
|
-// String targetPath = "/home/ruoyi/uploadPath/upload/unzipFile";
|
|
398
|
|
- String targetPath = "D:/zip";
|
|
|
397
|
+ String targetPath = "/home/ruoyi/uploadPath/upload/unzipFile";
|
|
|
398
|
+// String targetPath = "D:/zip";
|
|
399
|
399
|
File zipFile = null;
|
|
400
|
400
|
InputStream ins = null;
|
|
401
|
401
|
try {
|
|
|
@@ -413,8 +413,8 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
413
|
413
|
String subzipName = zipName.substring(0, zipName.indexOf(".zip"));
|
|
414
|
414
|
// String zipPath = "F:\\testZip\\uploadPath\\upload\\upload1\\unzipFile\\"+subzipName;
|
|
415
|
415
|
// todo 服务器上要放开
|
|
416
|
|
-// String zipPath = "/home/ruoyi/uploadPath/upload/unzipFile/" + subzipName;
|
|
417
|
|
- String zipPath = "D:/" + subzipName;
|
|
|
416
|
+ String zipPath = "/home/ruoyi/uploadPath/upload/unzipFile/" + subzipName;
|
|
|
417
|
+// String zipPath = "D:/" + subzipName;
|
|
418
|
418
|
|
|
419
|
419
|
File dirUnzipPath = new File(zipPath);
|
|
420
|
420
|
List<File> allFiles = new ArrayList<>();
|
|
|
@@ -2961,16 +2961,16 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
2961
|
2961
|
}
|
|
2962
|
2962
|
UUID uuid = UUID.randomUUID();
|
|
2963
|
2963
|
// todo 服务器上要放开
|
|
2964
|
|
-// String targetPath = "/home/ruoyi/uploadPath/upload/unzipFile/"+uuid+ "/";
|
|
2965
|
|
- String targetPath = "D:/zip";
|
|
|
2964
|
+ String targetPath = "/home/ruoyi/uploadPath/upload/unzipFile/"+uuid+ "/";
|
|
|
2965
|
+// String targetPath = "D:/zip";
|
|
2966
|
2966
|
File zipFile = null;
|
|
2967
|
2967
|
InputStream ins = null;
|
|
2968
|
2968
|
try {
|
|
2969
|
2969
|
ins = file.getInputStream();
|
|
2970
|
2970
|
//上传的压缩包保存的路径
|
|
2971
|
2971
|
// todo 服务器上要放开
|
|
2972
|
|
-// String savePath = "/home/ruoyi/uploadPath/upload/zipFile/";
|
|
2973
|
|
- String savePath = "D:/zip/";
|
|
|
2972
|
+ String savePath = "/home/ruoyi/uploadPath/upload/zipFile/";
|
|
|
2973
|
+// String savePath = "D:/zip/";
|
|
2974
|
2974
|
String saveName = uuid + "_" + file.getOriginalFilename();
|
|
2975
|
2975
|
zipFile = new File(savePath + saveName);
|
|
2976
|
2976
|
inputChangeToFile(ins, zipFile);
|