作者 lyh

gx

@@ -334,7 +334,7 @@ class UpdateSeoTdk extends Command @@ -334,7 +334,7 @@ class UpdateSeoTdk extends Command
334 $data = []; 334 $data = [];
335 if(empty($v['title'])){ 335 if(empty($v['title'])){
336 //生成seo_title 336 //生成seo_title
337 - $data['title'] = $v['title']; 337 + $data['title'] = $v['name'];
338 } 338 }
339 if(empty($v['keywords'])){ 339 if(empty($v['keywords'])){
340 //获取核心关键词 340 //获取核心关键词
@@ -345,7 +345,9 @@ class UpdateSeoTdk extends Command @@ -345,7 +345,9 @@ class UpdateSeoTdk extends Command
345 } 345 }
346 if(empty($v['description'])){ 346 if(empty($v['description'])){
347 $name = $this->companyName($project_id); 347 $name = $this->companyName($project_id);
348 - $data['description'] = $this->ai_send('page_meta_description',$v['title'],$name); 348 + if(!empty($name)){
  349 + $data['description'] = $this->ai_send('page_meta_description',$v['name'],$name);
  350 + }
349 } 351 }
350 if(!$data){ 352 if(!$data){
351 continue; 353 continue;