瀏覽代碼

wsesmiler

wesmiler 6 年之前
父節點
當前提交
e90842bc83
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      vendor/thinkcmf/cmf-app/src/weixin/model/Stroage.php

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

@@ -240,6 +240,9 @@ class Stroage extends Model
         $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','docx', 'xls', 'xlsx', 'ppt', 'pptx'];
         if (in_array($fileType, $typeData)) {
         if (in_array($fileType, $typeData)) {
+            if($fileType == 'docx'){
+                $file = Stroage::convertFile($file,'doc');
+            }
             $file = Stroage::onLineConvertFile($file);
             $file = Stroage::onLineConvertFile($file);
             return Stroage::getPdfFilePage($file);
             return Stroage::getPdfFilePage($file);
         }
         }