作者 赵彬吉

update

@@ -385,7 +385,7 @@ class UpdateSeoTdk extends Command @@ -385,7 +385,7 @@ class UpdateSeoTdk extends Command
385 //in,for,with,to,near,from 这些介词 只拼前缀,不拼后缀 385 //in,for,with,to,near,from 这些介词 只拼前缀,不拼后缀
386 $suffix_ban = ['in ', 'for ', 'with ', 'to ', 'near ','from ', 'In ', 'For ', 'With ', 'To ', 'Near ','From ']; 386 $suffix_ban = ['in ', 'for ', 'with ', 'to ', 'near ','from ', 'In ', 'For ', 'With ', 'To ', 'Near ','From '];
387 $suffix = ''; 387 $suffix = '';
388 - if(Str::contains($title, $suffix_ban)){ 388 + if(!Str::contains($title, $suffix_ban)){
389 // 某些后缀不能并存的情况 389 // 某些后缀不能并存的情况
390 $ban_suffix = []; 390 $ban_suffix = [];
391 //services/service 结尾的词,后缀不拼manufacturer,factory 391 //services/service 结尾的词,后缀不拼manufacturer,factory