|
...
|
...
|
@@ -371,7 +371,7 @@ class UpdateSeoTdk extends Command |
|
|
|
if (empty($prefix) || empty($suffix))
|
|
|
|
continue;
|
|
|
|
$seo_title = $prefix . ' ' . $v[$this->topic_fields[$table]] . ' ' . $suffix;
|
|
|
|
$data[$field] = $seo_title;
|
|
|
|
$data[$field] = trim($seo_title);
|
|
|
|
$update[$table]['title']++;
|
|
|
|
} else if ($table == 'gl_ai_blog_list' && $field == 'seo_title') {
|
|
|
|
//直接使用 top blog
|
|
...
|
...
|
@@ -547,6 +547,9 @@ class UpdateSeoTdk extends Command |
|
|
|
//去掉标题存在的词
|
|
|
|
if ($topic) {
|
|
|
|
foreach ($fix_keyword as $k=>$keyword) {
|
|
|
|
// 前后缀如果已经存在, 就不在拼接当前类型
|
|
|
|
if (FALSE !== strpos($topic, $keyword))
|
|
|
|
return $str;
|
|
|
|
//处理单词复数 s es ies ves
|
|
|
|
$keyword = rtrim($keyword, 'ves');
|
|
|
|
$keyword = rtrim($keyword, 'ies');
|
...
|
...
|
|