Showing
1 changed file
with
4 additions
and
0 deletions
| @@ -137,6 +137,10 @@ class Area extends Common | @@ -137,6 +137,10 @@ class Area extends Common | ||
| 137 | $list= file_get_contents(ON_LINE.'App.Agent.FrozenAgent&areaid='.$data['id']); | 137 | $list= file_get_contents(ON_LINE.'App.Agent.FrozenAgent&areaid='.$data['id']); |
| 138 | $array = json_decode($list,TRUE); | 138 | $array = json_decode($list,TRUE); |
| 139 | if($array['data']){ | 139 | if($array['data']){ |
| 140 | + foreach ($array['data'] as $key => $value) { | ||
| 141 | + //禁止该账号登录PC站点 | ||
| 142 | + db('admin')->where('username='."'".$value."'")->update(['is_open'=>0]); | ||
| 143 | + } | ||
| 140 | return $result = ['code'=>1,'msg'=>'操作成功!','data'=>$array['data'],'rel'=>1]; | 144 | return $result = ['code'=>1,'msg'=>'操作成功!','data'=>$array['data'],'rel'=>1]; |
| 141 | }else{ | 145 | }else{ |
| 142 | return $result = ['code'=>0,'msg'=>'操作失败!','data'=>$array['data'],'rel'=>1]; | 146 | return $result = ['code'=>0,'msg'=>'操作失败!','data'=>$array['data'],'rel'=>1]; |
-
Please register or login to post a comment