作者 lyh

gx

@@ -37,6 +37,7 @@ class GoogleSearchController extends BaseController @@ -37,6 +37,7 @@ class GoogleSearchController extends BaseController
37 $searchDetailModel = new GoogleSearchDetail(); 37 $searchDetailModel = new GoogleSearchDetail();
38 $this->map['project_id']= $this->user['project_id']; 38 $this->map['project_id']= $this->user['project_id'];
39 $data = $searchDetailModel->lists($this->map,$this->page,$this->row); 39 $data = $searchDetailModel->lists($this->map,$this->page,$this->row);
  40 + if(!empty($data)){
40 if($this->param['type'] == 'country'){ 41 if($this->param['type'] == 'country'){
41 $country = []; 42 $country = [];
42 foreach ($data as $val){ 43 foreach ($data as $val){
@@ -48,6 +49,7 @@ class GoogleSearchController extends BaseController @@ -48,6 +49,7 @@ class GoogleSearchController extends BaseController
48 $data[$key] = $val; 49 $data[$key] = $val;
49 } 50 }
50 } 51 }
  52 + }
51 $this->response('success',Code::SUCCESS,$data); 53 $this->response('success',Code::SUCCESS,$data);
52 } 54 }
53 } 55 }