作者 lyh

gx

... ... @@ -62,11 +62,13 @@ class OptimizationReportController extends BaseController
'cert_info' => date('Y-m-d', strtotime($domain_info['certificate_start_time'])) . ' - ' .date('Y-m-d', strtotime($domain_info['certificate_end_time'])),
];
}
//外链周期分析
$external_links = ExternalLinks::where('project_id', $this->param['project_id'])->first();
$data['domain'] = $domain_info;
//方案信息
$data['plan_information'] = $this->plan_information($projectInfo,$domain_info);
//排名数据
$data['first_total'] = $this->first_total();
$data['first_total'] = $this->first_total($external_links);
//关键词排名分析图
$data['rank_chat'] = $this->rank_chat();
//关键词排名明细
... ... @@ -77,8 +79,7 @@ class OptimizationReportController extends BaseController
$data['count_30'] = $this->count_30_total();
//访问国家前10
$data['access_country_count'] = $this->access_country_count();
//外链周期分析
$external_links = ExternalLinks::where('project_id', $this->param['project_id'])->first();
//SEO数据周期分析图 外链数
$data['external_links_chat'] = [
'labels' => array_keys($external_links['data'] ?? []),
... ... @@ -295,7 +296,7 @@ class OptimizationReportController extends BaseController
* @method :post
* @time :2024/3/7 16:58
*/
public function first_total(){
public function first_total($external_links){
$rank = RankData::where('project_id', $this->param['project_id'])->first();
return [
'first_num' => $rank['first_num'] ?? 0,
... ...