Commit 150e7f348e9814366785b21bb6909ff95d7626cb
Merge branch 'master' of http://123.56.79.57/najixian/xt_dc_admin
Showing
2 changed files
with
6 additions
and
2 deletions
| @@ -134,9 +134,13 @@ class Area extends Common | @@ -134,9 +134,13 @@ class Area extends Common | ||
| 134 | */ | 134 | */ |
| 135 | public function setfrozenseller(){ | 135 | public function setfrozenseller(){ |
| 136 | $data = Request::except('file'); | 136 | $data = Request::except('file'); |
| 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['area_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]; |
| @@ -130,7 +130,7 @@ | @@ -130,7 +130,7 @@ | ||
| 130 | if(obj.event === 'stop'){ | 130 | if(obj.event === 'stop'){ |
| 131 | var statusVal = data.status==1 ? '已冻结' : '冻结'; | 131 | var statusVal = data.status==1 ? '已冻结' : '冻结'; |
| 132 | layer.confirm('请确定要 '+statusVal+" 该商家!", function(index){ | 132 | layer.confirm('请确定要 '+statusVal+" 该商家!", function(index){ |
| 133 | - $.post("{:url('setfrozenseller')}",{id:data.areaid},function(res){ | 133 | + $.post("{:url('setfrozenseller')}",{area_id:data.areaid},function(res){ |
| 134 | if(res.code==1){ | 134 | if(res.code==1){ |
| 135 | layer.msg(res.msg,{time:1000,icon:1}); | 135 | layer.msg(res.msg,{time:1000,icon:1}); |
| 136 | location.reload(); | 136 | location.reload(); |
-
Please register or login to post a comment