refactor: 修改视频分类相关接口

This commit is contained in:
2025-02-20 18:11:42 +08:00
parent d186e4f6b0
commit 19dc561a67
2 changed files with 3 additions and 2 deletions

View File

@@ -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());
}