wesmiler před 6 roky
rodič
revize
3efbb983b6

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

@@ -285,7 +285,7 @@ echo $file."\n";
         $fileType = getFileType($file);
         $pathFile = preg_match("/^files/", $file)? UPLOAD_PATH.$file : $file;
         $path = dirname($pathFile).'/';
-        $filename = str_replace('.'.$fileType,'.pdf', $file);
+        $filename = str_replace('.'.$fileType,'.'.$type, $file);
         switch($type){
             case 'pdf':
                 $command = "libreoffice6.3 --invisible --convert-to pdf --outdir \"{$path}\" \"{$pathFile}\"";