作者 lyh

gx

@@ -67,15 +67,15 @@ class OptimizationReportController extends BaseController @@ -67,15 +67,15 @@ class OptimizationReportController extends BaseController
67 $data['pv_ip'] = $this->pv_ip($domain_info['domain']); 67 $data['pv_ip'] = $this->pv_ip($domain_info['domain']);
68 //30天统计 68 //30天统计
69 $data['count_30'] = $this->count_30_total(); 69 $data['count_30'] = $this->count_30_total();
70 -// //访问国家前10  
71 -// $data['access_country_count'] = $this->access_country_count();  
72 -// //外链周期分析  
73 -// $external_links = ExternalLinks::where('project_id', $this->param['project_id'])->first();  
74 -// //SEO数据周期分析图 外链数  
75 -// $data['external_links_chat'] = [  
76 -// 'labels' => array_keys($external_links['data'] ?? []),  
77 -// 'data' => array_values($external_links['data'] ?? []),  
78 -// ]; 70 + //访问国家前10
  71 + $data['access_country_count'] = $this->access_country_count();
  72 + //外链周期分析
  73 + $external_links = ExternalLinks::where('project_id', $this->param['project_id'])->first();
  74 + //SEO数据周期分析图 外链数
  75 + $data['external_links_chat'] = [
  76 + 'labels' => array_keys($external_links['data'] ?? []),
  77 + 'data' => array_values($external_links['data'] ?? []),
  78 + ];
79 // $indexed_pages = IndexedPages::where('project_id', $this->param['project_id'])->first(); 79 // $indexed_pages = IndexedPages::where('project_id', $this->param['project_id'])->first();
80 // //SEO数据周期分析图 收录数 80 // //SEO数据周期分析图 收录数
81 // $data['indexed_pages_chat'] = [ 81 // $data['indexed_pages_chat'] = [