|
...
|
...
|
@@ -366,10 +366,14 @@ class UpdateSeoTdk extends Command |
|
|
|
}
|
|
|
|
} 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;
|
|
|
|
}
|
|
|
|
|
|
|
|
$prefix = $this->getPrefixKeyword($project_id, 'prefix', 1, $v[$this->topic_fields[$table]]);
|
|
|
|
$suffix = $this->getPrefixKeyword($project_id, 'suffix', 2, $v[$this->topic_fields[$table]]);
|
|
|
|
if (empty($prefix) || empty($suffix))
|
|
|
|
continue;
|
|
|
|
$seo_title = $prefix . ' ' . $v[$this->topic_fields[$table]] . ' ' . $suffix;
|
|
|
|
$data[$field] = trim($seo_title);
|
|
|
|
$update[$table]['title']++;
|
|
...
|
...
|
@@ -703,3 +707,4 @@ class UpdateSeoTdk extends Command |
|
|
|
return $mail->add($data);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|