From 6d3f9e7cfc2df0e72ae2d062fd4fbc076995f2b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E9=9B=84?= Date: Tue, 21 Mar 2023 06:02:40 +0000 Subject: [PATCH 1/5] =?UTF-8?q?update=20server/src/main/java/cn/keking/ser?= =?UTF-8?q?vice/impl/OfficeFilePreviewImpl.java.=20=E8=A7=84=E8=8C=83?= =?UTF-8?q?=E8=BD=AC=E6=8D=A2=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 高雄 --- .../main/java/cn/keking/service/impl/OfficeFilePreviewImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/cn/keking/service/impl/OfficeFilePreviewImpl.java b/server/src/main/java/cn/keking/service/impl/OfficeFilePreviewImpl.java index b90be1cd..751eaf88 100644 --- a/server/src/main/java/cn/keking/service/impl/OfficeFilePreviewImpl.java +++ b/server/src/main/java/cn/keking/service/impl/OfficeFilePreviewImpl.java @@ -47,7 +47,7 @@ public class OfficeFilePreviewImpl implements FilePreview { String fileName = fileAttribute.getName(); String filePassword = fileAttribute.getFilePassword(); String userToken = fileAttribute.getUserToken(); - boolean isHtml = suffix.equalsIgnoreCase("xls") || suffix.equalsIgnoreCase("xlsx") || suffix.equalsIgnoreCase("csv"); + boolean isHtml = suffix.equalsIgnoreCase("xls") || suffix.equalsIgnoreCase("xlsx") || suffix.equalsIgnoreCase("csv") || suffix.equalsIgnoreCase("xlsm") || suffix.equalsIgnoreCase("xlt") || suffix.equalsIgnoreCase("xltm") || suffix.equalsIgnoreCase("et") || suffix.equalsIgnoreCase("ett") || suffix.equalsIgnoreCase("xlam"); String pdfName = fileName.substring(0, fileName.lastIndexOf(".") + 1) + (isHtml ? "html" : "pdf"); String cacheFileName = userToken == null ? pdfName : userToken + "_" + pdfName; String outFilePath = FILE_DIR + cacheFileName; From 871a83e3b5187d6a42ebea4f901befe7ef83e4f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E9=9B=84?= Date: Tue, 21 Mar 2023 08:05:50 +0000 Subject: [PATCH 2/5] =?UTF-8?q?update=20server/src/main/resources/static/o?= =?UTF-8?q?fd/index.html.=20=E6=9B=B4=E6=96=B0OFD=E8=A7=A3=E6=9E=90?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E4=B8=BA1.4.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 高雄 --- server/src/main/resources/static/ofd/index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/src/main/resources/static/ofd/index.html b/server/src/main/resources/static/ofd/index.html index aa080c58..8d6cd398 100644 --- a/server/src/main/resources/static/ofd/index.html +++ b/server/src/main/resources/static/ofd/index.html @@ -1,4 +1,4 @@ - + @@ -45,6 +45,8 @@