作者 刘锟

合并分支 'akun' 到 'master'

Akun



查看合并请求 !3178
@@ -104,21 +104,7 @@ class SplicePrefix extends Command @@ -104,21 +104,7 @@ class SplicePrefix extends Command
104 104
105 // 没有 SEO Title 直接生成 105 // 没有 SEO Title 直接生成
106 if (empty($item->seo_title)) { 106 if (empty($item->seo_title)) {
107 - $prefix = $tdk_class->getPrefixKeyword($project_id, 'prefix', 2, $item->title);  
108 - $suffix = $tdk_class->getPrefixKeyword($project_id, 'suffix', 2, trim($prefix . ' ' . $item->title));  
109 - if (Str::startsWith($suffix, ', ')) {  
110 - $seo_title = $prefix . ' ' . $item->title . $suffix;  
111 - } else {  
112 - $seo_title = $prefix . ' ' . $item->title . ' ' . $suffix;  
113 - }  
114 - $item->seo_title = trim($seo_title);  
115 - $item->save();  
116 -  
117 - //存入按需更新表  
118 - UpdateNotify::addUpdateItem($project_id, 'product_keyword', $item->route);  
119 - $notify_master = true;  
120 -  
121 - $this->output('new seo title: ' . $seo_title); 107 + $this->output('没有seo_title');
122 continue; 108 continue;
123 } 109 }
124 110