refactor: 修改视频分类相关接口
This commit is contained in:
@@ -47,6 +47,7 @@ class VideoCategory
|
||||
$id = request()->param('id');
|
||||
|
||||
$category = VideoCategoryModel::withoutField([
|
||||
'language_id',
|
||||
'created_at',
|
||||
'updated_at'
|
||||
])
|
||||
@@ -120,7 +121,7 @@ class VideoCategory
|
||||
$sort = request()->post('sort');
|
||||
|
||||
$validate = new VideoCategoryValidate;
|
||||
if (!$validate::scene('sort')->check(['id' => $id,'sort' => $sort])) {
|
||||
if (!$validate->scene('sort')->check(['id' => $id,'sort' => $sort])) {
|
||||
return error($validate::getError());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user