|
@@ -137,8 +137,9 @@ class ManageUserService
|
|
|
->where('cpid', $cpid)
|
|
->where('cpid', $cpid)
|
|
|
->where('is_deleted', 0)
|
|
->where('is_deleted', 0)
|
|
|
->count();
|
|
->count();
|
|
|
- if ($groupCount >= 20) {
|
|
|
|
|
- Utils::throwError('1002:该公司组员数量已达上限(20人)');
|
|
|
|
|
|
|
+ $group_user_max = env('GROUP_USER_MAX', 30);
|
|
|
|
|
+ if ($groupCount >= $group_user_max) {
|
|
|
|
|
+ Utils::throwError('1002:该公司组员数量已达上限('.$group_user_max.'人)');
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|