|
@@ -41,7 +41,7 @@ public class TiffFilePreviewImpl implements FilePreview {
|
|
|
if (forceUpdatedCache || !fileHandlerService.listConvertedFiles().containsKey(cacheName) || !ConfigConstants.isCacheEnabled()) {
|
|
|
ReturnResponse<String> response = DownloadUtils.downLoad(fileAttribute, fileName);
|
|
|
if (response.isFailure()) {
|
|
|
- return otherFilePreview.notSupportedFile(model, fileAttribute, response.getMsg());
|
|
|
+ return otherFilePreview.notSupportedFile(url, model, fileAttribute, response.getMsg());
|
|
|
}
|
|
|
String filePath = response.getContent();
|
|
|
if ("pdf".equalsIgnoreCase(tifPreviewType)) {
|
|
@@ -53,7 +53,7 @@ public class TiffFilePreviewImpl implements FilePreview {
|
|
|
model.addAttribute("currentUrl", url);
|
|
|
return PICTURE_FILE_PREVIEW_PAGE;
|
|
|
}else {
|
|
|
- return otherFilePreview.notSupportedFile(model, fileAttribute, "TIF转pdf异常,请联系系统管理员!" );
|
|
|
+ return otherFilePreview.notSupportedFile(url, model, fileAttribute, "TIF转pdf异常,请联系系统管理员!" );
|
|
|
}
|
|
|
}
|
|
|
//是否保留TIFF源文件
|
|
@@ -77,7 +77,7 @@ public class TiffFilePreviewImpl implements FilePreview {
|
|
|
model.addAttribute("currentUrl", url);
|
|
|
return PICTURE_FILE_PREVIEW_PAGE;
|
|
|
}else {
|
|
|
- return otherFilePreview.notSupportedFile(model, fileAttribute, "TIF转JPG异常,请联系系统管理员!" );
|
|
|
+ return otherFilePreview.notSupportedFile(url, model, fileAttribute, "TIF转JPG异常,请联系系统管理员!" );
|
|
|
}
|
|
|
}
|
|
|
//是否保留源文件,转换失败保留源文件,转换成功删除源文件
|
|
@@ -109,7 +109,7 @@ public class TiffFilePreviewImpl implements FilePreview {
|
|
|
if (forceUpdatedCache || !fileHandlerService.listConvertedFiles().containsKey(fileName) || !ConfigConstants.isCacheEnabled()) {
|
|
|
ReturnResponse<String> response = DownloadUtils.downLoad(fileAttribute, fileName);
|
|
|
if (response.isFailure()) {
|
|
|
- return otherFilePreview.notSupportedFile(model, fileAttribute, response.getMsg());
|
|
|
+ return otherFilePreview.notSupportedFile(url, model, fileAttribute, response.getMsg());
|
|
|
}
|
|
|
model.addAttribute("currentUrl", fileHandlerService.getRelativePath(response.getContent()));
|
|
|
if (ConfigConstants.isCacheEnabled()) {
|