作者 李宇航

合并分支 'lyh-server' 到 'master'

Lyh server



查看合并请求 !1791
@@ -38,8 +38,6 @@ class GoogleLinkController extends BaseController @@ -38,8 +38,6 @@ class GoogleLinkController extends BaseController
38 $this->response('success'); 38 $this->response('success');
39 } 39 }
40 } 40 }
41 - $lists['y_total'] = $linkModel->counts(['status'=>1,'project_id'=>$this->user['project_id']]);  
42 - $lists['n_total'] = $linkModel->counts(['status'=>0,'project_id'=>$this->user['project_id']]);  
43 $this->response('success',Code::SUCCESS,$lists); 41 $this->response('success',Code::SUCCESS,$lists);
44 } 42 }
45 43
@@ -37,7 +37,7 @@ class GoogleSearchController extends BaseController @@ -37,7 +37,7 @@ class GoogleSearchController extends BaseController
37 //查询详情数据 37 //查询详情数据
38 $searchDetailModel = new GoogleSearchDetail(); 38 $searchDetailModel = new GoogleSearchDetail();
39 $this->map['project_id'] = $this->user['project_id']; 39 $this->map['project_id'] = $this->user['project_id'];
40 - $data = $searchDetailModel->lists($this->map,$this->page,$this->row,'clicks',['keys','click_rate','impressions_rate']); 40 + $data = $searchDetailModel->lists($this->map,$this->page,$this->row,'impressions',['keys','click_rate','impressions_rate']);
41 if(!empty($data)){ 41 if(!empty($data)){
42 if($this->param['type'] == 'country'){ 42 if($this->param['type'] == 'country'){
43 $codeCountryModel = new GoogleCodeCountry(); 43 $codeCountryModel = new GoogleCodeCountry();