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

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

@@ -246,9 +246,10 @@ class Stroage extends Model
             $cfile = Stroage::onLineConvertFile($file);
             saveLogCache('convert1', ['file'=> $file,'cfile'=> $cfile,'fileType'=> $fileType]);
             if($fileType == 'docx' && !$cfile){
-                $cfile = Stroage::convertFile($file,'doc');
-            } else if(!$cfile && ($fileType == 'xls' || $fileType == 'xlsx')){
-                //	echo $file.'+xls+';
+                $file = Stroage::convertFile($file,'doc');
+            }
+
+            if(!$cfile){
                 $cfile = Stroage::convertFile($file,'pdf');
             }