Ver Fonte

wesmiler

wesmiler há 6 anos atrás
pai
commit
9cf2d11e3a
1 ficheiros alterados com 5 adições e 0 exclusões
  1. 5 0
      vendor/thinkcmf/cmf-app/src/weixin/model/Stroage.php

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

@@ -92,6 +92,7 @@ class Stroage extends Model
      */
     public static function uploadFile($file, $scene = 'default')
     {
+        set_time_limit(0);
         $data = [];
         $path = "upload/files/{$scene}";
         if (!is_dir($path)) {
@@ -306,6 +307,10 @@ class Stroage extends Model
                 $command = "libreoffice6.3 --invisible --convert-to doc --outdir \"{$path}\" \"{$pathFile}\"";
                 exec($command);
                 break;
+            case 'xlsx':
+                $command = "libreoffice6.3 --invisible --convert-to xlsx --outdir \"{$path}\" \"{$pathFile}\"";
+                exec($command);
+                break;
         }
 
         return $filename;