wesmiler %!s(int64=6) %!d(string=hai) anos
pai
achega
3efbb983b6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      vendor/thinkcmf/cmf-app/src/weixin/model/Stroage.php

+ 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}\"";