mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 03:01:12 +00:00
perf: 调整项目最多支持添加50个模板、100个标签
This commit is contained in:
parent
3809046fbc
commit
074ccc8aab
@ -2907,8 +2907,8 @@ class ProjectController extends AbstractController
|
|||||||
$template->update($data);
|
$template->update($data);
|
||||||
} else {
|
} else {
|
||||||
$templateCount = ProjectTaskTemplate::where('project_id', $projectId)->count();
|
$templateCount = ProjectTaskTemplate::where('project_id', $projectId)->count();
|
||||||
if ($templateCount >= 20) {
|
if ($templateCount >= 50) {
|
||||||
return Base::retError('每个项目最多添加20个模板');
|
return Base::retError('每个项目最多添加50个模板');
|
||||||
}
|
}
|
||||||
$template = ProjectTaskTemplate::create($data);
|
$template = ProjectTaskTemplate::create($data);
|
||||||
}
|
}
|
||||||
@ -3043,8 +3043,8 @@ class ProjectController extends AbstractController
|
|||||||
$tag->update($data);
|
$tag->update($data);
|
||||||
} else {
|
} else {
|
||||||
$tagCount = ProjectTag::where('project_id', $projectId)->count();
|
$tagCount = ProjectTag::where('project_id', $projectId)->count();
|
||||||
if ($tagCount >= 20) {
|
if ($tagCount >= 100) {
|
||||||
return Base::retError('每个项目最多添加20个标签');
|
return Base::retError('每个项目最多添加100个标签');
|
||||||
}
|
}
|
||||||
$tag = ProjectTag::create($data);
|
$tag = ProjectTag::create($data);
|
||||||
$project->addLog("添加标签【" . $tag->name . "】");
|
$project->addLog("添加标签【" . $tag->name . "】");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user