Commit 1caac365 by 杨昕

code format

parent f1505ee1
Pipeline #18873 passed with stages
in 59 seconds
......@@ -636,7 +636,6 @@ class MediaModel extends Eloquent
public static function updateMediaStatus($request, $media_id)
{
try {
$media = MediaModel::where('_id', $media_id)->first();
if (empty($media)) {
......@@ -644,9 +643,7 @@ class MediaModel extends Eloquent
if (empty($mediaCatg)) {
throw new \Exception("媒资类别不存在");
}
$create_time = new UTCDateTime(time() * 1000);;
$data = [
'_id' => $media_id,
'media_name' => $request->media_name ?? "",
......@@ -666,9 +663,7 @@ class MediaModel extends Eloquent
$id = MediaModel::insertGetId($data);
LogModel::addlog(["添加媒资信息" => $data, ['媒资ID为:=> ' . $id]]);
return $id;
}
if ($request->status) {
$data = [
......@@ -706,7 +701,6 @@ class MediaModel extends Eloquent
LogModel::addlog(["更新视频status end处理媒资封面图"=>$media_id,"数据"=>$data,"视频地址"=>$request->media_url]);
}
LogModel::addlog(["更新媒资信息Status=>" . $media_id, $data]);
} catch (\Exception $exception) {
throw new DatabaseException($exception->getMessage());
}
......
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