Ver Fonte

wesmiler

wesmiler há 6 anos atrás
pai
commit
0cfe855827
1 ficheiros alterados com 4 adições e 0 exclusões
  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;