|
@@ -22,6 +22,7 @@ class DataXw extends Model
|
|
|
];
|
|
|
public static function onBeforeWrite(self $model)
|
|
|
{
|
|
|
+ return true;
|
|
|
$model['has_video']=Str::contains($model['content'],'</video>');
|
|
|
if($model['has_video']){
|
|
|
$html=HtmlDomParser::str_get_html($model['content']);
|
|
@@ -34,6 +35,7 @@ class DataXw extends Model
|
|
|
'ffmpeg.binaries' => root_path() . 'extend/bin/ffmpeg',
|
|
|
'ffprobe.binaries' => root_path() . 'extend/bin/ffprobe'
|
|
|
]);
|
|
|
+
|
|
|
$video = $pro->open($src);
|
|
|
$dir = public_path();
|
|
|
$filename = 'upload/v-c/' . session_create_id() . '.png';
|
|
@@ -93,4 +95,4 @@ class DataXw extends Model
|
|
|
return '取消成功';
|
|
|
}
|
|
|
}
|
|
|
-}
|
|
|
+}
|