作者 赵彬吉

seo_title bug fix

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