正在显示
1 个修改的文件
包含
4 行增加
和
2 行删除
| @@ -77,14 +77,16 @@ class AiBlogAutoPublish extends Command | @@ -77,14 +77,16 @@ class AiBlogAutoPublish extends Command | ||
| 77 | $this->output("项目{$project->id}未到执行时间" . $next_auto_date); | 77 | $this->output("项目{$project->id}未到执行时间" . $next_auto_date); |
| 78 | continue; | 78 | continue; |
| 79 | } | 79 | } |
| 80 | - //核心关键词+网站关键词 | 80 | + //核心关键词+网站关键词+白帽关键词 |
| 81 | $main_keywords = ProjectKeyword::where('project_id', $project->id)->value('main_keyword'); | 81 | $main_keywords = ProjectKeyword::where('project_id', $project->id)->value('main_keyword'); |
| 82 | $main_keywords = explode("\r\n", $main_keywords); | 82 | $main_keywords = explode("\r\n", $main_keywords); |
| 83 | + $seo_keywords = ProjectKeyword::where('project_id', $project->id)->value('seo_keywords'); | ||
| 84 | + $seo_keywords = explode("\r\n", $seo_keywords); | ||
| 83 | ProjectServer::useProject($project->id); | 85 | ProjectServer::useProject($project->id); |
| 84 | $site_keywords = WebSetting::where('project_id', $project->id)->value('keyword'); | 86 | $site_keywords = WebSetting::where('project_id', $project->id)->value('keyword'); |
| 85 | DB::disconnect('custom_mysql'); | 87 | DB::disconnect('custom_mysql'); |
| 86 | $site_keywords = explode(",", $site_keywords); | 88 | $site_keywords = explode(",", $site_keywords); |
| 87 | - $keywords = array_filter(array_merge($main_keywords, $site_keywords)); | 89 | + $keywords = array_filter(array_merge($main_keywords, $site_keywords, $seo_keywords)); |
| 88 | $keywords = array_map('trim', $keywords); | 90 | $keywords = array_map('trim', $keywords); |
| 89 | if (empty($keywords)) { | 91 | if (empty($keywords)) { |
| 90 | $this->output("项目{$project->id}未获取到关键词"); | 92 | $this->output("项目{$project->id}未获取到关键词"); |
-
请 注册 或 登录 后发表评论