|
@@ -25,7 +25,11 @@ class UsersController extends AdminBaseController{ |
|
@@ -25,7 +25,11 @@ class UsersController extends AdminBaseController{ |
25
|
$where['b.user_nickname'] = ['like',"%$keyword%"];
|
25
|
$where['b.user_nickname'] = ['like',"%$keyword%"];
|
26
|
}
|
26
|
}
|
27
|
if($_POST['identity'] != ""){
|
27
|
if($_POST['identity'] != ""){
|
28
|
- $where['a.status'] = $_POST['identity'];
|
28
|
+ if($_POST['identity'] == -1){
|
|
|
29
|
+ $where['a.status'] = 0;
|
|
|
30
|
+ }else{
|
|
|
31
|
+ $where['a.status'] = $_POST['identity'];
|
|
|
32
|
+ }
|
29
|
}
|
33
|
}
|
30
|
$data = Db::name('my_user') -> alias('a') -> field('a.*,b.user_nickname') -> join('user b','a.uid = b.id','LEFT') -> where($where) -> paginate(1000000);
|
34
|
$data = Db::name('my_user') -> alias('a') -> field('a.*,b.user_nickname') -> join('user b','a.uid = b.id','LEFT') -> where($where) -> paginate(1000000);
|
31
|
}else{
|
35
|
}else{
|