浏览代码

新增 wps 文档预览支持

kl 4 年之前
父节点
当前提交
56cdeffaa9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      server/src/main/java/cn/keking/model/FileType.java

+ 1 - 1
server/src/main/java/cn/keking/model/FileType.java

@@ -26,7 +26,7 @@ public enum FileType {
     TIFF("tiffFilePreviewImpl");
 
 
-    private static final String[] OFFICE_TYPES = {"docx", "doc", "xls", "xlsx", "ppt", "pptx"};
+    private static final String[] OFFICE_TYPES = {"docx", "wps", "doc", "xls", "xlsx", "ppt", "pptx"};
     private static final String[] PICTURE_TYPES = {"jpg", "jpeg", "png", "gif", "bmp", "ico", "raw"};
     private static final String[] ARCHIVE_TYPES = {"rar", "zip", "jar", "7-zip", "tar", "gzip", "7z"};
     private static final String[] TIFF_TYPES = {"tif", "tiff"};