Przeglądaj źródła

查看、压缩本地文件时,不再过滤zip文件

sunyj 9 lat temu
rodzic
commit
cd83e2e1b7

+ 3 - 3
src/main/java/com/uas/report/service/impl/FileServiceImpl.java

@@ -57,10 +57,10 @@ public class FileServiceImpl implements FileService {
 			if (file == null || !file.exists()) {
 				return false;
 			}
-			// 不支持查看、压缩:zip、jasper文件、tmp路径
+			// 不支持查看、压缩:jasper文件、tmp路径
 			String filePath = file.getPath();
-			if (filePath.endsWith(".zip") || filePath.endsWith(".jasper") || filePath.endsWith("tmp")
-					|| filePath.contains("\\tmp\\") || filePath.contains("/tmp/")) {
+			if (filePath.endsWith(".jasper") || filePath.endsWith("tmp") || filePath.contains("\\tmp\\")
+					|| filePath.contains("/tmp/")) {
 				return false;
 			}
 			return true;