Commit 802b87a6 by 杨昕

code format

parent ef2434e8
Pipeline #18810 passed with stages
in 1 minute 16 seconds
......@@ -1119,7 +1119,7 @@ class MediaModel extends Eloquent
LogModel::addlog(["接收到更新 screenshot 数据回调 " => $request->all()]);
$media_id = $request->media_id;
if ($request->type != 'video'){
$data["media_audio"] = "audio";
$data["media_audio"] = "audio"; //资源类型,audio音频文件,video视频文件
LogModel::addlog(["接收到更新 screenshot 数据回调 ,更新音频文件" => $request->all(),"更新数据为"=>$data]);
MediaModel::where("_id", $media_id)->update($data);
return;
......@@ -1130,6 +1130,7 @@ class MediaModel extends Eloquent
} catch (\Exception $exception) {
throw new DatabaseException($exception->getMessage());
}
//资源类型,audio音频文件,video视频文件
$item["media_audio"] = "video";
$item["screen_shot"]["height"] = $request->height;
$item["screen_shot"]["width"] = $request->width;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment