|
...
|
...
|
@@ -118,9 +118,10 @@ class Area extends Common |
|
|
|
$data = Request::except('file');
|
|
|
|
$list= file_get_contents(ON_LINE.'App.Agent.SetAgentOperate&id='.$data['id']);
|
|
|
|
$array = json_decode($list,TRUE);
|
|
|
|
|
|
|
|
if($array['data']){
|
|
|
|
//禁止该账号登录PC站点
|
|
|
|
db('admin')->where('username='.$data['account'])->update(['is_open'=>0]);
|
|
|
|
db('admin')->where('username='."'".$data["account"]."'")->update(['is_open'=>0]);
|
|
|
|
return $result = ['code'=>1,'msg'=>'操作成功!','data'=>$array['data'],'rel'=>1];
|
|
|
|
}else{
|
|
|
|
return $result = ['code'=>0,'msg'=>'操作失败!','data'=>$array['data'],'rel'=>1];
|
...
|
...
|
|