Browse Source

自定义预览服务

wanghaiwu 4 days ago
parent
commit
e058c3233c

+ 3 - 5
code/base/nckd-jimin-base-helper/src/main/java/nckd/base/helper/DefaultPreviewCusServiceImpl.java

@@ -162,7 +162,7 @@ public class DefaultPreviewCusServiceImpl  implements PreviewService {
         if (YunHomeService.isNotNeedDeal(ext)) {
             InputStream in = DecodeFileFactory.getDecodeService().getDecodeFileStream(cacheIn);
 
-            in = FileSECUtils.processFileWithSEC(path, in);
+//            in = FileSECUtils.processFileWithSEC(path, in);
 
             return YunHomeService.getNotNeedTransferRs(in, ext);
         } else {
@@ -187,7 +187,7 @@ public class DefaultPreviewCusServiceImpl  implements PreviewService {
         try {
             fileStream = this.fileService.download(path, headerMap, new HashMap());
 
-            fileStream = FileSECUtils.processFileWithSEC(path, fileStream);
+//            fileStream = FileSECUtils.processFileWithSEC(path, fileStream);
         } catch (Exception var11) {
             error = var11.getMessage();
         }
@@ -208,9 +208,7 @@ public class DefaultPreviewCusServiceImpl  implements PreviewService {
 
         Map var7;
         try {
-            in = FileSECUtils.processFileWithSEC(path, in);
-
-            in = FileSECUtils.processFileWithSEC(path, in);
+//            in = FileSECUtils.processFileWithSEC(path, in);
 
             var7 = this.yunHomeService.transferPreviewStream(config, in, fileName, YunHomeService.getIdFromTempCachePreviewUrl(path));
         } finally {