wesmiler пре 6 година
родитељ
комит
1608dcb26f
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      vendor/thinkcmf/cmf-app/src/weixin/model/Stroage.php

+ 2 - 2
vendor/thinkcmf/cmf-app/src/weixin/model/Stroage.php

@@ -238,7 +238,7 @@ class Stroage extends Model
 
 
         // 表格文件转PDF
         // 表格文件转PDF
         $typeData = config('files.convertTypes');
         $typeData = config('files.convertTypes');
-        $typeData = $typeData ? array_keys($typeData) : ['doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx'];
+        $typeData = $typeData ? array_keys($typeData) : ['doc', 'xls', 'xlsx', 'ppt', 'pptx'];
         if (in_array($fileType, $typeData)) {
         if (in_array($fileType, $typeData)) {
             $file = Stroage::onLineConvertFile($file);
             $file = Stroage::onLineConvertFile($file);
             return Stroage::getPdfFilePage($file);
             return Stroage::getPdfFilePage($file);
@@ -246,7 +246,7 @@ class Stroage extends Model
 
 
         // 其他文件
         // 其他文件
         $fileTypes = config('files.fileTypes');
         $fileTypes = config('files.fileTypes');
-        $fileTypes = $fileTypes ? $fileTypes : ['txt', 'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', 'pdf'];
+        $fileTypes = $fileTypes ? $fileTypes : ['txt', 'doc', 'xls', 'xlsx', 'ppt', 'pptx', 'pdf'];
         if (!in_array($fileType, $fileTypes)) {
         if (!in_array($fileType, $fileTypes)) {
             return 0;
             return 0;
         }
         }