This commit is contained in:
兔姬桑
2021-01-10 07:36:25 +08:00
parent 90a8a075fb
commit 548ce3bc28
3 changed files with 3 additions and 3 deletions

View File

@@ -73,7 +73,7 @@ class UserController extends Controller
}
if (isset($group)) {
$query->whereGroupId($group);
$query->whereUserGroupId($group);
}
if (isset($level)) {

View File

@@ -19,7 +19,7 @@ class UserObserver
$subscribe->code = Helpers::makeSubscribeCode();
$subscribe->save();
$allowNodes = $user->nodes()->whereType(4)->pluck('id');
$allowNodes = $user->nodes()->whereType(4)->get()->pluck('id');
if ($allowNodes) {
addUser::dispatch($user->id, $allowNodes);
}

View File

@@ -56,7 +56,7 @@
</div>
<div class="form-group col-xxl-1 col-lg-3 col-md-3 col-4">
<select class="form-control" id="level" name="level" onChange="Search()">
<option value="" hidden>用户分组</option>
<option value="" hidden>用户等级</option>
@foreach($levels as $key => $level)
<option value="{{$key}}">{{$level}}</option>
@endforeach