mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-07 04:59:36 +00:00
@@ -73,7 +73,7 @@ class UserController extends Controller
|
||||
}
|
||||
|
||||
if (isset($group)) {
|
||||
$query->whereGroupId($group);
|
||||
$query->whereUserGroupId($group);
|
||||
}
|
||||
|
||||
if (isset($level)) {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user