refactor: 修改文章分类验证

This commit is contained in:
2025-04-14 18:11:53 +08:00
parent 941e103258
commit 26b83d2037

View File

@@ -43,7 +43,7 @@ class ArticleCategoryValidate extends Validate
'name.max' => '分类名称最多64个字符',
'pid.integer' => '父级分类ID必须为整数',
'pid.different' => '父级分类ID不能为自身',
'pid.checkPidNotBeChildren' => '父级分类不能为子分类',
'pid.checkPidNotBeChildren' => '父级分类不能为自身或自身的子分类',
'sort.require' => '排序不能为空',
'sort.integer' => '排序必须为整数',
'is_show.require' => '是否显示不能为空',