|
...
|
...
|
@@ -134,9 +134,13 @@ class Area extends Common |
|
|
|
*/
|
|
|
|
public function setfrozenseller(){
|
|
|
|
$data = Request::except('file');
|
|
|
|
$list= file_get_contents(ON_LINE.'App.Agent.FrozenAgent&areaid='.$data['id']);
|
|
|
|
$list= file_get_contents(ON_LINE.'App.Agent.FrozenAgent&areaid='.$data['area_id']);
|
|
|
|
$array = json_decode($list,TRUE);
|
|
|
|
if($array['data']){
|
|
|
|
foreach ($array['data'] as $key => $value) {
|
|
|
|
//禁止该账号登录PC站点
|
|
|
|
db('admin')->where('username='."'".$value."'")->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];
|
...
|
...
|
|