|
@@ -61,8 +61,9 @@ class User extends BaseController{
|
|
|
}
|
|
|
unset($post['status']);
|
|
|
}
|
|
|
- if($post["level"]!=""){
|
|
|
- $where[]=["b.level","=",$post["level"]];
|
|
|
+ if($post["islevel"]!=""){
|
|
|
+
|
|
|
+ $where[]=$post["islevel"]==1?["b.level","=",1]:["b.level","<>",1];
|
|
|
$uid =Db::name("user_role")->alias("a")
|
|
|
->leftJoin("role b","a.roleid=b.id")->where($where)->column("uid");
|
|
|
$post['uid'] = $uid;
|