Fix static method call to instance method in VideoCategory
All checks were successful
Gitea Actions Official-website / deploy-dev (push) Successful in 4s

This commit is contained in:
2026-07-07 11:02:34 +08:00
parent 80291c6a6a
commit d314cfd12a

View File

@@ -151,14 +151,14 @@ class VideoCategory
$validate = new VideoCategoryValidate;
if (!$validate->scene('sort')->check(['id' => $id,'sort' => $sort])) {
return error($validate::getError());
return error($validate->getError());
}
$category = VideoCategoryModel::bypk($id)->find();
if (!$category) {
return error('请确认操作对象是否存在');
}
$category->sort = $sort;
if (!$category->save()) {
return error('操作失败');