正在显示
1 个修改的文件
包含
5 行增加
和
4 行删除
| @@ -62,11 +62,13 @@ class OptimizationReportController extends BaseController | @@ -62,11 +62,13 @@ class OptimizationReportController extends BaseController | ||
| 62 | 'cert_info' => date('Y-m-d', strtotime($domain_info['certificate_start_time'])) . ' - ' .date('Y-m-d', strtotime($domain_info['certificate_end_time'])), | 62 | 'cert_info' => date('Y-m-d', strtotime($domain_info['certificate_start_time'])) . ' - ' .date('Y-m-d', strtotime($domain_info['certificate_end_time'])), |
| 63 | ]; | 63 | ]; |
| 64 | } | 64 | } |
| 65 | + //外链周期分析 | ||
| 66 | + $external_links = ExternalLinks::where('project_id', $this->param['project_id'])->first(); | ||
| 65 | $data['domain'] = $domain_info; | 67 | $data['domain'] = $domain_info; |
| 66 | //方案信息 | 68 | //方案信息 |
| 67 | $data['plan_information'] = $this->plan_information($projectInfo,$domain_info); | 69 | $data['plan_information'] = $this->plan_information($projectInfo,$domain_info); |
| 68 | //排名数据 | 70 | //排名数据 |
| 69 | - $data['first_total'] = $this->first_total(); | 71 | + $data['first_total'] = $this->first_total($external_links); |
| 70 | //关键词排名分析图 | 72 | //关键词排名分析图 |
| 71 | $data['rank_chat'] = $this->rank_chat(); | 73 | $data['rank_chat'] = $this->rank_chat(); |
| 72 | //关键词排名明细 | 74 | //关键词排名明细 |
| @@ -77,8 +79,7 @@ class OptimizationReportController extends BaseController | @@ -77,8 +79,7 @@ class OptimizationReportController extends BaseController | ||
| 77 | $data['count_30'] = $this->count_30_total(); | 79 | $data['count_30'] = $this->count_30_total(); |
| 78 | //访问国家前10 | 80 | //访问国家前10 |
| 79 | $data['access_country_count'] = $this->access_country_count(); | 81 | $data['access_country_count'] = $this->access_country_count(); |
| 80 | - //外链周期分析 | ||
| 81 | - $external_links = ExternalLinks::where('project_id', $this->param['project_id'])->first(); | 82 | + |
| 82 | //SEO数据周期分析图 外链数 | 83 | //SEO数据周期分析图 外链数 |
| 83 | $data['external_links_chat'] = [ | 84 | $data['external_links_chat'] = [ |
| 84 | 'labels' => array_keys($external_links['data'] ?? []), | 85 | 'labels' => array_keys($external_links['data'] ?? []), |
| @@ -295,7 +296,7 @@ class OptimizationReportController extends BaseController | @@ -295,7 +296,7 @@ class OptimizationReportController extends BaseController | ||
| 295 | * @method :post | 296 | * @method :post |
| 296 | * @time :2024/3/7 16:58 | 297 | * @time :2024/3/7 16:58 |
| 297 | */ | 298 | */ |
| 298 | - public function first_total(){ | 299 | + public function first_total($external_links){ |
| 299 | $rank = RankData::where('project_id', $this->param['project_id'])->first(); | 300 | $rank = RankData::where('project_id', $this->param['project_id'])->first(); |
| 300 | return [ | 301 | return [ |
| 301 | 'first_num' => $rank['first_num'] ?? 0, | 302 | 'first_num' => $rank['first_num'] ?? 0, |
-
请 注册 或 登录 后发表评论