|
@@ -161,6 +161,9 @@ public class DefaultPreviewCusServiceImpl implements PreviewService {
|
|
|
String ext = fileName.substring(fileName.lastIndexOf(46) + 1);
|
|
|
if (YunHomeService.isNotNeedDeal(ext)) {
|
|
|
InputStream in = DecodeFileFactory.getDecodeService().getDecodeFileStream(cacheIn);
|
|
|
+
|
|
|
+ in = FileSECUtils.processFileWithSEC(path, in);
|
|
|
+
|
|
|
return YunHomeService.getNotNeedTransferRs(in, ext);
|
|
|
} else {
|
|
|
String decodeFilePath = DecodeFileFactory.getDecodeService().getDecodeFilePath(path);
|
|
@@ -207,6 +210,8 @@ public class DefaultPreviewCusServiceImpl implements PreviewService {
|
|
|
try {
|
|
|
in = FileSECUtils.processFileWithSEC(path, in);
|
|
|
|
|
|
+ in = FileSECUtils.processFileWithSEC(path, in);
|
|
|
+
|
|
|
var7 = this.yunHomeService.transferPreviewStream(config, in, fileName, YunHomeService.getIdFromTempCachePreviewUrl(path));
|
|
|
} finally {
|
|
|
if (in != null) {
|