作者 赵彬吉

update

@@ -147,7 +147,7 @@ class UpdateSeoTdk extends Command @@ -147,7 +147,7 @@ class UpdateSeoTdk extends Command
147 'gl_blog' => 'name', 147 'gl_blog' => 'name',
148 'gl_blog_category' => 'name', 148 'gl_blog_category' => 'name',
149 'gl_ai_blog' => 'new_title', 149 'gl_ai_blog' => 'new_title',
150 - 'gl_ai_blog_list' => '', //直接使用 top blog 150 + 'gl_ai_blog_list' => 'seo_title',
151 'gl_ai_blog_author' => 'title', 151 'gl_ai_blog_author' => 'title',
152 'gl_news' => 'name', 152 'gl_news' => 'name',
153 'gl_news_category' => 'name', 153 'gl_news_category' => 'name',
@@ -457,6 +457,9 @@ class UpdateSeoTdk extends Command @@ -457,6 +457,9 @@ class UpdateSeoTdk extends Command
457 // topic 457 // topic
458 if(strpos($prompt, '{topic}') !== false){ 458 if(strpos($prompt, '{topic}') !== false){
459 $topic = $data[$this->topic_fields[$table]] ?? ''; 459 $topic = $data[$this->topic_fields[$table]] ?? '';
  460 + if($table == 'gl_ai_blog_list'){
  461 + $topic = 'top blog';
  462 + }
460 if(!$topic){ 463 if(!$topic){
461 echo getmypid() . ' ' . 'topic为空 跳过' . PHP_EOL; 464 echo getmypid() . ' ' . 'topic为空 跳过' . PHP_EOL;
462 return false; 465 return false;