refactor: 去除视频信息删除时验证

This commit is contained in:
2025-02-20 17:56:46 +08:00
parent f74aadc5d2
commit 51dfa1f11e
2 changed files with 0 additions and 14 deletions

View File

@@ -240,12 +240,6 @@ class Video
public function delete()
{
$id = request()->param('id');
$validate = new VideoValidate;
if (!$validate->scene('delete')->check(['id' => $id])) {
return error($validate->getError());
}
$video = VideoModel::bypk($id)->find();
if (empty($video)) {
return error('请确认操作对象是不存在');