|
|
@@ -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<>();
|
|
|
@@ -2975,16 +2975,16 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
2975
|
2975
|
}
|
|
2976
|
2976
|
UUID uuid = UUID.randomUUID();
|
|
2977
|
2977
|
// todo 服务器上要放开
|
|
2978
|
|
-// String targetPath = "/home/ruoyi/uploadPath/upload/unzipFile/"+uuid+ "/";
|
|
2979
|
|
- String targetPath = "D:/zip";
|
|
|
2978
|
+ String targetPath = "/home/ruoyi/uploadPath/upload/unzipFile/"+uuid+ "/";
|
|
|
2979
|
+// String targetPath = "D:/zip";
|
|
2980
|
2980
|
File zipFile = null;
|
|
2981
|
2981
|
InputStream ins = null;
|
|
2982
|
2982
|
try {
|
|
2983
|
2983
|
ins = file.getInputStream();
|
|
2984
|
2984
|
//上传的压缩包保存的路径
|
|
2985
|
2985
|
// todo 服务器上要放开
|
|
2986
|
|
-// String savePath = "/home/ruoyi/uploadPath/upload/zipFile/";
|
|
2987
|
|
- String savePath = "D:/zip/";
|
|
|
2986
|
+ String savePath = "/home/ruoyi/uploadPath/upload/zipFile/";
|
|
|
2987
|
+// String savePath = "D:/zip/";
|
|
2988
|
2988
|
String saveName = uuid + "_" + file.getOriginalFilename();
|
|
2989
|
2989
|
zipFile = new File(savePath + saveName);
|
|
2990
|
2990
|
inputChangeToFile(ins, zipFile);
|