Showing
1 changed file
with
2 additions
and
1 deletions
| @@ -118,9 +118,10 @@ class Area extends Common | @@ -118,9 +118,10 @@ class Area extends Common | ||
| 118 | $data = Request::except('file'); | 118 | $data = Request::except('file'); |
| 119 | $list= file_get_contents(ON_LINE.'App.Agent.SetAgentOperate&id='.$data['id']); | 119 | $list= file_get_contents(ON_LINE.'App.Agent.SetAgentOperate&id='.$data['id']); |
| 120 | $array = json_decode($list,TRUE); | 120 | $array = json_decode($list,TRUE); |
| 121 | + | ||
| 121 | if($array['data']){ | 122 | if($array['data']){ |
| 122 | //禁止该账号登录PC站点 | 123 | //禁止该账号登录PC站点 |
| 123 | - db('admin')->where('username='.$data['account'])->update(['is_open'=>0]); | 124 | + db('admin')->where('username='."'".$data["account"]."'")->update(['is_open'=>0]); |
| 124 | return $result = ['code'=>1,'msg'=>'操作成功!','data'=>$array['data'],'rel'=>1]; | 125 | return $result = ['code'=>1,'msg'=>'操作成功!','data'=>$array['data'],'rel'=>1]; |
| 125 | }else{ | 126 | }else{ |
| 126 | return $result = ['code'=>0,'msg'=>'操作失败!','data'=>$array['data'],'rel'=>1]; | 127 | return $result = ['code'=>0,'msg'=>'操作失败!','data'=>$array['data'],'rel'=>1]; |
-
Please register or login to post a comment