|
@@ -115,7 +115,7 @@ public class DefaultPreviewCusServiceImpl implements PreviewService {
|
|
Map result;
|
|
Map result;
|
|
logger.info("testpreviewWPS..." + path + ", " + ext);
|
|
logger.info("testpreviewWPS..." + path + ", " + ext);
|
|
|
|
|
|
- if (YunHomeService.isNotNeedDeal(ext) && !"pdf".equals(ext) && !"txt".equals(ext)) {
|
|
|
|
|
|
+ if (YunHomeService.isNotNeedDeal(ext)) {
|
|
logger.info("testpreviewWPS...10001001");
|
|
logger.info("testpreviewWPS...10001001");
|
|
|
|
|
|
Map<String, String> headerMap = new HashMap();
|
|
Map<String, String> headerMap = new HashMap();
|
|
@@ -208,7 +208,7 @@ public class DefaultPreviewCusServiceImpl implements PreviewService {
|
|
logger.info("testpreviewFromCacheWPS...");
|
|
logger.info("testpreviewFromCacheWPS...");
|
|
|
|
|
|
String ext = fileName.substring(fileName.lastIndexOf(46) + 1);
|
|
String ext = fileName.substring(fileName.lastIndexOf(46) + 1);
|
|
- if (YunHomeService.isNotNeedDeal(ext) && !"pdf".equals(ext) && !"txt".equals(ext)) {
|
|
|
|
|
|
+ if (YunHomeService.isNotNeedDeal(ext)) {
|
|
logger.info("testpreviewFromCacheWPS...10001001");
|
|
logger.info("testpreviewFromCacheWPS...10001001");
|
|
|
|
|
|
InputStream in = DecodeFileFactory.getDecodeService().getDecodeFileStream(cacheIn);
|
|
InputStream in = DecodeFileFactory.getDecodeService().getDecodeFileStream(cacheIn);
|