|
@@ -26,7 +26,7 @@ class User extends BaseController
|
|
|
if(!empty($effetc) && $effetc['code']!=0){
|
|
|
return error_show($effetc['code'],$effetc['message']);
|
|
|
}
|
|
|
- if(isset($post['status'])){
|
|
|
+ if(isset($post['status'])&&$post['status']!==''){
|
|
|
$uid =Db::name("user_role")->where(["status"=>1,"is_del"=>0])->column("uid");
|
|
|
if($post['status']==1){
|
|
|
$post['uid']=$uid;
|
|
@@ -184,7 +184,7 @@ class User extends BaseController
|
|
|
if(!empty($effetc) && $effetc['code']!=0){
|
|
|
return app_show($effetc['code'],$effetc['message']);
|
|
|
}
|
|
|
- if(isset($post['status'])){
|
|
|
+ if(isset($post['status'])&&$post['status']!==''){
|
|
|
$uid =Db::name("user_role")->where(["status"=>1,"is_del"=>0])->column("uid");
|
|
|
if($post['status']==1){
|
|
|
$post['uid']=$uid;
|
|
@@ -244,7 +244,7 @@ class User extends BaseController
|
|
|
$uids = Db::name("depart_user")->where([["itemid","=",$itemid],["is_del","=",0]])->column("uid");
|
|
|
$post['uid'] =$uids;
|
|
|
}
|
|
|
- if(isset($post['status'])){
|
|
|
+ if(isset($post['status'])&&$post['status']!==''){
|
|
|
$uid =Db::name("user_role")->where(["status"=>1,"is_del"=>0])->column("uid");
|
|
|
if($post['status']==1){
|
|
|
$post['uid']= isset($uids)?array_unique(array_merge($uids,$uid)):$uid;
|