|
...
|
...
|
@@ -334,7 +334,7 @@ class UpdateSeoTdk extends Command |
|
|
|
$data = [];
|
|
|
|
if(empty($v['title'])){
|
|
|
|
//生成seo_title
|
|
|
|
$data['title'] = $v['title'];
|
|
|
|
$data['title'] = $v['name'];
|
|
|
|
}
|
|
|
|
if(empty($v['keywords'])){
|
|
|
|
//获取核心关键词
|
|
...
|
...
|
@@ -345,7 +345,9 @@ class UpdateSeoTdk extends Command |
|
|
|
}
|
|
|
|
if(empty($v['description'])){
|
|
|
|
$name = $this->companyName($project_id);
|
|
|
|
$data['description'] = $this->ai_send('page_meta_description',$v['title'],$name);
|
|
|
|
if(!empty($name)){
|
|
|
|
$data['description'] = $this->ai_send('page_meta_description',$v['name'],$name);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(!$data){
|
|
|
|
continue;
|
...
|
...
|
|