Skip to content

Commit

Permalink
feat: 限制项目最多100个人参与
Browse files Browse the repository at this point in the history
  • Loading branch information
kuaifan committed Jan 6, 2022
1 parent 7f454f2 commit 840374c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/Http/Controllers/Api/ProjectController.php
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,10 @@ public function user()
$userid = Request::input('userid');
$userid = is_array($userid) ? $userid : [$userid];
//
if (count($userid) > 100) {
return Base::retError('项目人数最多100个');
}
//
$project = Project::userProject($project_id, true, true);
//
$deleteUser = AbstractModel::transaction(function() use ($project, $userid) {
Expand Down

0 comments on commit 840374c

Please sign in to comment.