优化任务、列表数量限制

This commit is contained in:
kuaifan
2022-01-06 19:12:49 +08:00
parent 77a9eca634
commit f919a34166
2 changed files with 24 additions and 1 deletions

View File

@@ -758,6 +758,10 @@ class ProjectController extends AbstractController
if (empty($name)) {
return Base::retError('列表名称不能为空');
}
if (ProjectColumn::whereProjectId($project->id)->count() > 50) {
return Base::retError('项目列表最多不能超过50个');
}
//
$column = ProjectColumn::createInstance([
'project_id' => $project->id,
'name' => $name,