diff --git a/public/static/onlyOffice/editor.html b/public/static/onlyOffice/editor.html index 77c006104..b92157117 100644 --- a/public/static/onlyOffice/editor.html +++ b/public/static/onlyOffice/editor.html @@ -44,8 +44,8 @@ var fileSuffix = GetQueryValue('fileType') // 文档类word-text、表格类excel-spreadsheet、ppt类-presentation var documentType = '' - var arr_data_ppt = ['pdf', 'PDF', 'pptx', 'PPTX', 'ppt', 'PPT']; - var arr_data_word = ['pdf', 'PDF', 'doc','DOC', 'docx','DOCX']; + var arr_data_ppt = ['pptx', 'PPTX','pptx', 'PPTX', 'ppt', 'PPT']; + var arr_data_word = ['doc','DOC','doc','DOC', 'docx','DOCX']; var arr_data_xls = ['xls', 'XLS', 'xlsx', 'XLSX','.xls', '.XLS', '.xlsx', '.XLSX']; arr_data_ppt.find(function(value) { diff --git a/public/static/onlyOffice/onlinePreview.html b/public/static/onlyOffice/onlinePreview.html index 9494710b1..897dd02a4 100644 --- a/public/static/onlyOffice/onlinePreview.html +++ b/public/static/onlyOffice/onlinePreview.html @@ -41,8 +41,8 @@ var fileSuffix = GetQueryValue('fileType') // 文档类word-text、表格类excel-spreadsheet、ppt类-presentation var documentType = '' - var arr_data_ppt = ['pdf', 'PDF', 'pptx', 'PPTX', 'ppt', 'PPT']; - var arr_data_word = ['pdf', 'PDF', 'doc','DOC', 'docx','DOCX']; + var arr_data_ppt = ['pptx', 'PPTX','pptx', 'PPTX', 'ppt', 'PPT']; + var arr_data_word = ['doc','DOC','doc','DOC', 'docx','DOCX']; var arr_data_xls = ['xls', 'XLS', 'xlsx', 'XLSX','.xls', '.XLS', '.xlsx', '.XLSX']; arr_data_ppt.find(function(value) {