Showing
1 changed file
with
1 additions
and
41 deletions
| @@ -15,48 +15,8 @@ class Comment extends Common | @@ -15,48 +15,8 @@ class Comment extends Common | ||
| 15 | */ | 15 | */ |
| 16 | public function CommentList(){ | 16 | public function CommentList(){ |
| 17 | if(Request::isAjax()){ | 17 | if(Request::isAjax()){ |
| 18 | - $data = Request::except('file'); | ||
| 19 | - $key= input('post.key') ? input('post.key') : ""; | ||
| 20 | - | ||
| 21 | - $keywords= @$key['id'] ? @$key['id'] : ''; | ||
| 22 | - | ||
| 23 | - $channel = @$key['channel'] ? @$key['channel'] : 1; | ||
| 24 | - $address = @$key['address'] ? @$key['address'] : ''; | ||
| 25 | - | ||
| 26 | - | ||
| 27 | - $limit = '&x='.$data["page"].'&y='.$data["limit"].'&keywords='.$keywords.'&account='.session('username').'&channel='.$channel.'&address='.$address; | ||
| 28 | - | ||
| 29 | - //获取运营人员列表 | ||
| 30 | - $list= file_get_contents(ON_LINE.'App.Agent.getSellerList'.$limit); | ||
| 31 | - $array = json_decode($list,TRUE); | ||
| 32 | - foreach ($array['data']['data'] as $key => $value) { | ||
| 33 | - $array['data']['data'][$key]['cdate'] = date("Y-m-d H:i:s",$value['cdate']); | ||
| 34 | - if($value['status']==1) | ||
| 35 | - $array['data']['data'][$key]['statusVal'] = "启用"; | ||
| 36 | - else | ||
| 37 | - $array['data']['data'][$key]['statusVal'] = "停用"; | ||
| 38 | - | ||
| 39 | - $c_name = array(); | ||
| 40 | - $t_name = array(); | ||
| 41 | - //2019-03-05 增加菜系配置、商家类型配置 | ||
| 42 | - if(is_array($value['cuisine'])){ | ||
| 43 | - foreach ($value['cuisine'] as $k => $v) { | ||
| 44 | - $c_name[] = $v['name']; | ||
| 45 | - } | ||
| 46 | - } | ||
| 47 | - if(is_array($value['type'])){ | ||
| 48 | - foreach ($value['type'] as $k => $v) { | ||
| 49 | - $t_name[] = $v['type_name']; | ||
| 50 | - } | ||
| 51 | - } | ||
| 52 | - if(!empty($c_name)) | ||
| 53 | - $array['data']['data'][$key]['cuisine'] = implode(',', $c_name); | ||
| 54 | - if(!empty($t_name)) | ||
| 55 | - $array['data']['data'][$key]['type'] = implode(',', $t_name); | ||
| 56 | - } | ||
| 57 | - return $result = ['code'=>0,'msg'=>'获取成功!','data'=>$array['data']['data'],'count'=>$array['data']['total'],'rel'=>1]; | 18 | + |
| 58 | } | 19 | } |
| 59 | - $this->assign ( 'title','区域内商户维护'); | ||
| 60 | return $this->fetch(); | 20 | return $this->fetch(); |
| 61 | } | 21 | } |
| 62 | 22 |
-
Please register or login to post a comment