PDF预览也支持图片模式和查看大图

This commit is contained in:
陈精华
2019-04-28 09:07:23 +08:00
committed by kl
parent 336a18ade7
commit 29726c11a3
2 changed files with 55 additions and 0 deletions

View File

@ -60,6 +60,7 @@ public class OfficeFilePreviewImpl implements FilePreview {
if (!new File(filePath).exists()) {
ReturnResponse<String> response = downloadUtils.downLoad(decodedUrl, suffix, null);
if (0 != response.getCode()) {
model.addAttribute("fileType", suffix);
model.addAttribute("msg", response.getMsg());
return "fileNotSupported";
}