wugg hace 2 años
padre
commit
8f976fccbb
Se han modificado 1 ficheros con 6 adiciones y 2 borrados
  1. 6 2
      app/admin/controller/User.php

+ 6 - 2
app/admin/controller/User.php

@@ -62,12 +62,16 @@ class User extends BaseController{
             unset($post['status']);
     	}
     	if($post["islevel"]!=""){
-
-    		$where[]=$post["islevel"]==1?["b.level","=",1]:["b.level","<>",1];
+    		$where[]=["b.level","=",1];
     		unset($post["islevel"]);
             $uid =Db::name("user_role")->alias("a")
             ->leftJoin("role b","a.roleid=b.id")->where($where)->column("uid");
             $post['uid'] = $uid;
+             if($post['status']==1){
+                $post['uid']= $uid;
+            }else{
+                $post['nouid']=$uid;
+            }
     	}
     	$userinfo=GetUserList($post);
         if(empty($userinfo)||$userinfo['code']!=0){