|
|
@@ -240,6 +240,9 @@ class Stroage extends Model
|
|
|
$typeData = config('files.convertTypes');
|
|
|
$typeData = $typeData ? array_keys($typeData) : ['doc','docx', 'xls', 'xlsx', 'ppt', 'pptx'];
|
|
|
if (in_array($fileType, $typeData)) {
|
|
|
+ if($fileType == 'docx'){
|
|
|
+ $file = Stroage::convertFile($file,'doc');
|
|
|
+ }
|
|
|
$file = Stroage::onLineConvertFile($file);
|
|
|
return Stroage::getPdfFilePage($file);
|
|
|
}
|