Showing
2 changed files
with
2 additions
and
2 deletions
| @@ -134,7 +134,7 @@ class Area extends Common | @@ -134,7 +134,7 @@ 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) { | 140 | foreach ($array['data'] as $key => $value) { |
| @@ -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