Commit 58c6e1bd by 杨昕

test

parent 07c30130
Pipeline #18752 passed with stages
in 1 minute 18 seconds
......@@ -1139,10 +1139,8 @@ class MediaModel extends Eloquent
$item["screen_shot"]["width"] = $request->width;
$item["screen_shot"]["url"] = $request->screenshot;
$flag = MediaModel::where("_id", $media_id)->update($item);
if (!$flag) {
throw new DatabaseException("更新媒资 screenshot 数据失败");
}
MediaModel::where("_id", $media_id)->update($item);
LogModel::addlog(["更新媒资 screenshot 数据成功 " => $item]);
}
......
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