作者 zhl

特殊处理聚合页seo标题

... ... @@ -333,13 +333,13 @@ class UpdateSeoTdk extends Command
$data[$field] = $this->ai_send($prompt, $project_id, $table, $v['id']);
}
}
else if ($table == 'gl_product_keyword' && $field == 'tags_title') {
else if ($table == 'gl_product_keyword' && $field == 'seo_title') {
# TODO 聚合页seo title 特殊处理 前缀_1 . 关键词 . 后缀_2
$prefix = $this->getPrefixKeyword($project_id, 'prefix', 1);
$suffix = $this->getPrefixKeyword($project_id, 'suffix', 2);
if (empty($prefix) || empty($suffix))
continue;
$seo_title = $prefix . $v[$this->topic_fields[$table]] . $suffix;
$seo_title = $prefix . ' ' . $v[$this->topic_fields[$table]] . ' ' . $suffix;
$data[$field] = $seo_title;
$update[$table]['title']++;
} else {
... ...