Showing
1 changed file
with
4 additions
and
6 deletions
| @@ -64,10 +64,6 @@ class Area extends Common | @@ -64,10 +64,6 @@ class Area extends Common | ||
| 64 | * 商家list | 64 | * 商家list |
| 65 | */ | 65 | */ |
| 66 | public function agent(){ | 66 | public function agent(){ |
| 67 | - //获取运营人员列表 | ||
| 68 | - $list= file_get_contents(ON_LINE.'App.Agent.getAgentList'.$limit); | ||
| 69 | - $array = json_decode($list,TRUE); | ||
| 70 | - print_r($array);die; | ||
| 71 | if(Request::isAjax()){ | 67 | if(Request::isAjax()){ |
| 72 | $data = Request::except('file'); | 68 | $data = Request::except('file'); |
| 73 | $key= input('post.key') ? input('post.key') : ""; | 69 | $key= input('post.key') ? input('post.key') : ""; |
| @@ -80,12 +76,14 @@ class Area extends Common | @@ -80,12 +76,14 @@ class Area extends Common | ||
| 80 | 76 | ||
| 81 | $limit = '';#'&x='.$data["page"].'&y='.$data["limit"]; | 77 | $limit = '';#'&x='.$data["page"].'&y='.$data["limit"]; |
| 82 | 78 | ||
| 83 | - | 79 | + //获取运营人员列表 |
| 80 | + $list= file_get_contents(ON_LINE.'App.Agent.getAgentList'.$limit); | ||
| 81 | + $array = json_decode($list,TRUE); | ||
| 84 | /*foreach ($array['data'][0]['data'] as $key => $value) { | 82 | /*foreach ($array['data'][0]['data'] as $key => $value) { |
| 85 | $array['data'][0]['data'][$key]['cdate'] = date("Y-m-d H:i:s",$value['cdate']); | 83 | $array['data'][0]['data'][$key]['cdate'] = date("Y-m-d H:i:s",$value['cdate']); |
| 86 | 84 | ||
| 87 | }*/ | 85 | }*/ |
| 88 | - return $result = ['code'=>0,'msg'=>'获取成功!','data'=>$array['data'][0]['data'],'rel'=>1];#'count'=>$array['data'][0]['total'] | 86 | + return $result = ['code'=>0,'msg'=>'获取成功!','data'=>$array['data'],'rel'=>1];#'count'=>$array['data'][0]['total'] |
| 89 | } | 87 | } |
| 90 | $this->assign ( 'title','代理商管理'); | 88 | $this->assign ( 'title','代理商管理'); |
| 91 | return $this->fetch(); | 89 | return $this->fetch(); |
-
Please register or login to post a comment