|
...
|
...
|
@@ -77,14 +77,16 @@ class AiBlogAutoPublish extends Command |
|
|
|
$this->output("项目{$project->id}未到执行时间" . $next_auto_date);
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
//核心关键词+网站关键词
|
|
|
|
//核心关键词+网站关键词+白帽关键词
|
|
|
|
$main_keywords = ProjectKeyword::where('project_id', $project->id)->value('main_keyword');
|
|
|
|
$main_keywords = explode("\r\n", $main_keywords);
|
|
|
|
$seo_keywords = ProjectKeyword::where('project_id', $project->id)->value('seo_keywords');
|
|
|
|
$seo_keywords = explode("\r\n", $seo_keywords);
|
|
|
|
ProjectServer::useProject($project->id);
|
|
|
|
$site_keywords = WebSetting::where('project_id', $project->id)->value('keyword');
|
|
|
|
DB::disconnect('custom_mysql');
|
|
|
|
$site_keywords = explode(",", $site_keywords);
|
|
|
|
$keywords = array_filter(array_merge($main_keywords, $site_keywords));
|
|
|
|
$keywords = array_filter(array_merge($main_keywords, $site_keywords, $seo_keywords));
|
|
|
|
$keywords = array_map('trim', $keywords);
|
|
|
|
if (empty($keywords)) {
|
|
|
|
$this->output("项目{$project->id}未获取到关键词");
|
...
|
...
|
|