wesmiler 6 lat temu
rodzic
commit
e90842bc83

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

@@ -240,6 +240,9 @@ class Stroage extends Model
         $typeData = config('files.convertTypes');
         $typeData = $typeData ? array_keys($typeData) : ['doc','docx', 'xls', 'xlsx', 'ppt', 'pptx'];
         if (in_array($fileType, $typeData)) {
+            if($fileType == 'docx'){
+                $file = Stroage::convertFile($file,'doc');
+            }
             $file = Stroage::onLineConvertFile($file);
             return Stroage::getPdfFilePage($file);
         }