wesmiler 6 年之前
父节点
当前提交
0cfe855827
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      vendor/thinkcmf/cmf-app/src/weixin/model/Stroage.php

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

@@ -289,6 +289,10 @@ echo $file."\n";
         switch($type){
             case 'pdf':
                 $command = "libreoffice6.3 --invisible --convert-to pdf --outdir \"{$path}\" \"{$pathFile}\"";
+                exec($command);
+                break;
+            case 'docx':
+                $command = "libreoffice6.3 --invisible --convert-to docx --outdir \"{$path}\" \"{$pathFile}\"";
 //                $command = "libreoffice6.3 --invisible --convert-to pdf:writer_pdf_Export --outdir \"{$path}\" \"{$pathFile}\"";
                 exec($command);
                 break;