正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
| @@ -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 | } |
-
请 注册 或 登录 后发表评论