Showing
1 changed file
with
8 additions
and
10 deletions
| @@ -275,22 +275,20 @@ class Template extends Common{ | @@ -275,22 +275,20 @@ class Template extends Common{ | ||
| 275 | */ | 275 | */ |
| 276 | public function sellerList(){ | 276 | public function sellerList(){ |
| 277 | if(Request::isAjax()){ | 277 | if(Request::isAjax()){ |
| 278 | + | ||
| 278 | $data = Request::except('file'); | 279 | $data = Request::except('file'); |
| 279 | $limit = '&x='.$data["page"].'&y='.$data["limit"]; | 280 | $limit = '&x='.$data["page"].'&y='.$data["limit"]; |
| 280 | //获取运营人员列表 | 281 | //获取运营人员列表 |
| 281 | - $list= file_get_contents(ON_LINE.'App.Seller.GetSellerList'.$limit); | 282 | + $list= file_get_contents(UNDER_LINE.'App.Seller.GetSellerList'.$limit); |
| 282 | $array = json_decode($list,TRUE); | 283 | $array = json_decode($list,TRUE); |
| 283 | - foreach ($array['data'][0] as $key => $value) { | ||
| 284 | - $array['data'][0][$key]['cdate'] = date("Y-m-d H:i:s",$value['cdate']); | 284 | + foreach ($array['data'][0]['data'] as $key => $value) { |
| 285 | + $array['data'][0]['data'][$key]['cdate'] = date("Y-m-d H:i:s",$value['cdate']); | ||
| 285 | if($value['status']==1) | 286 | if($value['status']==1) |
| 286 | - $array['data'][0][$key]['statusVal'] = "启用"; | 287 | + $array['data'][0]['data'][$key]['statusVal'] = "启用"; |
| 287 | else | 288 | else |
| 288 | - $array['data'][0][$key]['statusVal'] = "停用"; | ||
| 289 | - } | ||
| 290 | - if($array['ret']==200){ | ||
| 291 | - $result = ['code'=>0,'msg'=>'获取成功!','data'=>$array['data'][0],'rel'=>1]; | 289 | + $array['data'][0]['data'][$key]['statusVal'] = "停用"; |
| 292 | } | 290 | } |
| 293 | - return $result; | 291 | + return $result = ['code'=>0,'msg'=>'获取成功!','data'=>$array['data'][0]['data'],'count'=>$array['data'][0]['total'],'rel'=>1]; |
| 294 | } | 292 | } |
| 295 | $this->assign ( 'title','商户菜品配置'); | 293 | $this->assign ( 'title','商户菜品配置'); |
| 296 | return $this->fetch(); | 294 | return $this->fetch(); |
| @@ -307,7 +305,7 @@ class Template extends Common{ | @@ -307,7 +305,7 @@ class Template extends Common{ | ||
| 307 | $array = json_decode($list,TRUE); | 305 | $array = json_decode($list,TRUE); |
| 308 | if($array['ret']==200){ | 306 | if($array['ret']==200){ |
| 309 | $result['code'] = 1; | 307 | $result['code'] = 1; |
| 310 | - $result['msg'] = 'OK!'; | 308 | + $result['msg'] = 'SUCCESS!'; |
| 311 | }else{ | 309 | }else{ |
| 312 | $result['code'] = 0; | 310 | $result['code'] = 0; |
| 313 | $result['msg'] = '请求错误!'; | 311 | $result['msg'] = '请求错误!'; |
-
Please register or login to post a comment