|
...
|
...
|
@@ -60,7 +60,12 @@ class lyhDemo extends Command |
|
|
|
if(!empty($aiLists)){
|
|
|
|
foreach ($aiLists as $item){
|
|
|
|
if(!empty($item['seo_description'])){
|
|
|
|
$arr = explode(',',$item['seo_description']);
|
|
|
|
if($arr[0] != $item['seo_description']){
|
|
|
|
$text = $this->trimToLastFullWord($item['seo_description']);
|
|
|
|
}else{
|
|
|
|
$text = $arr[0];
|
|
|
|
}
|
|
|
|
$aiBlogModel->edit(['seo_description'=>$text],['id'=>$item['id']]);
|
|
|
|
}
|
|
|
|
}
|
...
|
...
|
|