lh 1 week ago
parent
commit
7e8c37bae6
1 changed files with 3 additions and 2 deletions
  1. 3 2
      app/Services/Manage/ManageUserService.php

+ 3 - 2
app/Services/Manage/ManageUserService.php

@@ -137,8 +137,9 @@ class ManageUserService
                 ->where('cpid', $cpid)
                 ->where('is_deleted', 0)
                 ->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.'人)');
             }
         }