|
...
|
...
|
@@ -53,12 +53,20 @@ class lyhDemo extends Command |
|
|
|
echo $this->trimToLastFullWord('You know, in the last few years, the world of global trade has really changed a lot, and Chinese manufacturing is right at the center of this shift. C');
|
|
|
|
die();
|
|
|
|
$projectModel = new Project();
|
|
|
|
$lists = $projectModel->list(['delete_status' => 0,'extend_type'=>0,'type'=>['in',[1,2,3,4,6]]], 'id', ['id']);
|
|
|
|
$lists = $projectModel->list(['delete_status' => 0,'id'=>467,'extend_type'=>0,'type'=>['in',[1,2,3,4,6]]], 'id', ['id']);
|
|
|
|
foreach ($lists as $val) {
|
|
|
|
echo date('Y-m-d H:i:s') . '开始--项目的id:'. $val['id'] . PHP_EOL;
|
|
|
|
ProjectServer::useProject($val['id']);
|
|
|
|
$aiBlogModel = new AiBlog();
|
|
|
|
$aiBlogModel->list(['status'=>2]);
|
|
|
|
$aiLists = $aiBlogModel->list(['status'=>2]);
|
|
|
|
if(!empty($aiLists)){
|
|
|
|
foreach ($AiLists as $item){
|
|
|
|
if(!empty($item['seo_description'])){
|
|
|
|
$text = $this->trimToLastFullWord($item['seo_description']);
|
|
|
|
echo $text.PHP_EOL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
DB::disconnect('custom_mysql');
|
|
|
|
}
|
|
|
|
return true;
|
...
|
...
|
|