|
...
|
...
|
@@ -15,48 +15,8 @@ class Comment extends Common |
|
|
|
*/
|
|
|
|
public function CommentList(){
|
|
|
|
if(Request::isAjax()){
|
|
|
|
$data = Request::except('file');
|
|
|
|
$key= input('post.key') ? input('post.key') : "";
|
|
|
|
|
|
|
|
$keywords= @$key['id'] ? @$key['id'] : '';
|
|
|
|
|
|
|
|
$channel = @$key['channel'] ? @$key['channel'] : 1;
|
|
|
|
$address = @$key['address'] ? @$key['address'] : '';
|
|
|
|
|
|
|
|
|
|
|
|
$limit = '&x='.$data["page"].'&y='.$data["limit"].'&keywords='.$keywords.'&account='.session('username').'&channel='.$channel.'&address='.$address;
|
|
|
|
|
|
|
|
//获取运营人员列表
|
|
|
|
$list= file_get_contents(ON_LINE.'App.Agent.getSellerList'.$limit);
|
|
|
|
$array = json_decode($list,TRUE);
|
|
|
|
foreach ($array['data']['data'] as $key => $value) {
|
|
|
|
$array['data']['data'][$key]['cdate'] = date("Y-m-d H:i:s",$value['cdate']);
|
|
|
|
if($value['status']==1)
|
|
|
|
$array['data']['data'][$key]['statusVal'] = "启用";
|
|
|
|
else
|
|
|
|
$array['data']['data'][$key]['statusVal'] = "停用";
|
|
|
|
|
|
|
|
$c_name = array();
|
|
|
|
$t_name = array();
|
|
|
|
//2019-03-05 增加菜系配置、商家类型配置
|
|
|
|
if(is_array($value['cuisine'])){
|
|
|
|
foreach ($value['cuisine'] as $k => $v) {
|
|
|
|
$c_name[] = $v['name'];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(is_array($value['type'])){
|
|
|
|
foreach ($value['type'] as $k => $v) {
|
|
|
|
$t_name[] = $v['type_name'];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(!empty($c_name))
|
|
|
|
$array['data']['data'][$key]['cuisine'] = implode(',', $c_name);
|
|
|
|
if(!empty($t_name))
|
|
|
|
$array['data']['data'][$key]['type'] = implode(',', $t_name);
|
|
|
|
}
|
|
|
|
return $result = ['code'=>0,'msg'=>'获取成功!','data'=>$array['data']['data'],'count'=>$array['data']['total'],'rel'=>1];
|
|
|
|
|
|
|
|
}
|
|
|
|
$this->assign ( 'title','区域内商户维护');
|
|
|
|
return $this->fetch();
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|