作者 赵彬吉

seo_title bug fix

@@ -368,7 +368,7 @@ class UpdateSeoTdk extends Command @@ -368,7 +368,7 @@ class UpdateSeoTdk extends Command
368 } 368 }
369 } else if ($table == 'gl_product_keyword' && $field == 'seo_title') { 369 } else if ($table == 'gl_product_keyword' && $field == 'seo_title') {
370 # TODO 聚合页seo title 特殊处理 前缀_1 . 关键词 . 后缀_2 370 # TODO 聚合页seo title 特殊处理 前缀_1 . 关键词 . 后缀_2
371 - $seo_title = ''; 371 + $seo_title = $v[$this->topic_fields[$table]];;
372 //只有推广项目才加 前后缀 372 //只有推广项目才加 前后缀
373 if($project->type == Project::TYPE_TWO) { 373 if($project->type == Project::TYPE_TWO) {
374 $prefix = $this->getPrefixKeyword($project_id, 'prefix', 1); 374 $prefix = $this->getPrefixKeyword($project_id, 'prefix', 1);
@@ -377,7 +377,7 @@ class UpdateSeoTdk extends Command @@ -377,7 +377,7 @@ class UpdateSeoTdk extends Command
377 continue; 377 continue;
378 } 378 }
379 379
380 - $title = $v[$this->topic_fields[$table]]; 380 + $title = $seo_title;
381 381
382 $prefix = $this->getPrefixKeyword($project_id, 'prefix', 1, $title); 382 $prefix = $this->getPrefixKeyword($project_id, 'prefix', 1, $title);
383 //in,for,with,to,near,from 这些介词 只拼前缀,不拼后缀 383 //in,for,with,to,near,from 这些介词 只拼前缀,不拼后缀