|
@@ -45,6 +45,7 @@ class PublicController
|
|
|
$group_levels = SystemGroupLevel::where('company_award', '>', 0)->column('id');
|
|
|
$award_levels = SystemAwardLevel::where('company_award', '>', 0)->column('id');
|
|
|
$p = [21];
|
|
|
+ $c = [];
|
|
|
while ($p) {
|
|
|
$child = User::where('spread_uid', 'in', $p)->where(function ($query) use ($group_levels, $award_levels) {
|
|
|
$query->where('group_level', 'in', $group_levels)->whereOr('award_level', 'in', $award_levels);
|