|
@@ -366,10 +366,14 @@ class UpdateSeoTdk extends Command |
|
@@ -366,10 +366,14 @@ class UpdateSeoTdk extends Command |
|
366
|
}
|
366
|
}
|
|
367
|
} else if ($table == 'gl_product_keyword' && $field == 'seo_title') {
|
367
|
} else if ($table == 'gl_product_keyword' && $field == 'seo_title') {
|
|
368
|
# TODO 聚合页seo title 特殊处理 前缀_1 . 关键词 . 后缀_2
|
368
|
# TODO 聚合页seo title 特殊处理 前缀_1 . 关键词 . 后缀_2
|
|
|
|
369
|
+ $prefix = $this->getPrefixKeyword($project_id, 'prefix', 1);
|
|
|
|
370
|
+ $suffix = $this->getPrefixKeyword($project_id, 'suffix', 2);
|
|
|
|
371
|
+ if (empty($prefix) || empty($suffix)){
|
|
|
|
372
|
+ continue;
|
|
|
|
373
|
+ }
|
|
|
|
374
|
+
|
|
369
|
$prefix = $this->getPrefixKeyword($project_id, 'prefix', 1, $v[$this->topic_fields[$table]]);
|
375
|
$prefix = $this->getPrefixKeyword($project_id, 'prefix', 1, $v[$this->topic_fields[$table]]);
|
|
370
|
$suffix = $this->getPrefixKeyword($project_id, 'suffix', 2, $v[$this->topic_fields[$table]]);
|
376
|
$suffix = $this->getPrefixKeyword($project_id, 'suffix', 2, $v[$this->topic_fields[$table]]);
|
|
371
|
- if (empty($prefix) || empty($suffix))
|
|
|
|
372
|
- continue;
|
|
|
|
373
|
$seo_title = $prefix . ' ' . $v[$this->topic_fields[$table]] . ' ' . $suffix;
|
377
|
$seo_title = $prefix . ' ' . $v[$this->topic_fields[$table]] . ' ' . $suffix;
|
|
374
|
$data[$field] = trim($seo_title);
|
378
|
$data[$field] = trim($seo_title);
|
|
375
|
$update[$table]['title']++;
|
379
|
$update[$table]['title']++;
|
|
@@ -703,3 +707,4 @@ class UpdateSeoTdk extends Command |
|
@@ -703,3 +707,4 @@ class UpdateSeoTdk extends Command |
|
703
|
return $mail->add($data);
|
707
|
return $mail->add($data);
|
|
704
|
}
|
708
|
}
|
|
705
|
}
|
709
|
}
|
|
|
|
710
|
+ |