作者 lyh

gxAiblog自动发布

@@ -61,12 +61,12 @@ class lyhDemo extends Command @@ -61,12 +61,12 @@ class lyhDemo extends Command
61 foreach ($aiLists as $item){ 61 foreach ($aiLists as $item){
62 if(!empty($item['seo_description'])){ 62 if(!empty($item['seo_description'])){
63 $arr = explode('.',$item['seo_description']); 63 $arr = explode('.',$item['seo_description']);
64 - dd($arr);  
65 - if($arr[0] != $item['seo_description']){ 64 + if($arr[0].'.' != $item['seo_description']){
66 $text = $this->trimToLastFullWord($item['seo_description']); 65 $text = $this->trimToLastFullWord($item['seo_description']);
67 }else{ 66 }else{
68 - $text = $arr[0]; 67 + $text = $arr[0].'.';
69 } 68 }
  69 + dd($text);
70 $aiBlogModel->edit(['seo_description'=>$text],['id'=>$item['id']]); 70 $aiBlogModel->edit(['seo_description'=>$text],['id'=>$item['id']]);
71 } 71 }
72 } 72 }