Fix static method call to instance method in VideoCategory
All checks were successful
Gitea Actions Official-website / deploy-dev (push) Successful in 4s
All checks were successful
Gitea Actions Official-website / deploy-dev (push) Successful in 4s
This commit is contained in:
@@ -151,7 +151,7 @@ class VideoCategory
|
|||||||
|
|
||||||
$validate = new VideoCategoryValidate;
|
$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());
|
return error($validate->getError());
|
||||||
}
|
}
|
||||||
|
|
||||||
$category = VideoCategoryModel::bypk($id)->find();
|
$category = VideoCategoryModel::bypk($id)->find();
|
||||||
|
|||||||
Reference in New Issue
Block a user