正在显示
1 个修改的文件
包含
4 行增加
和
2 行删除
| @@ -11,6 +11,7 @@ namespace App\Console\Commands\LyhTest; | @@ -11,6 +11,7 @@ namespace App\Console\Commands\LyhTest; | ||
| 11 | 11 | ||
| 12 | use App\Console\Commands\Domain\DomainInfo; | 12 | use App\Console\Commands\Domain\DomainInfo; |
| 13 | use App\Http\Logic\Aside\Project\ProjectLogic; | 13 | use App\Http\Logic\Aside\Project\ProjectLogic; |
| 14 | +use App\Models\Ai\AiBlog; | ||
| 14 | use App\Models\Ai\AiBlogAuthor; | 15 | use App\Models\Ai\AiBlogAuthor; |
| 15 | use App\Models\Com\NoticeLog; | 16 | use App\Models\Com\NoticeLog; |
| 16 | use App\Models\Com\V6WeeklyReport; | 17 | use App\Models\Com\V6WeeklyReport; |
| @@ -49,14 +50,15 @@ class lyhDemo extends Command | @@ -49,14 +50,15 @@ class lyhDemo extends Command | ||
| 49 | protected $description = '更新路由'; | 50 | protected $description = '更新路由'; |
| 50 | 51 | ||
| 51 | public function handle(){ | 52 | public function handle(){ |
| 52 | - echo $this->trimToLastFullWord('Laravel is a web'); | 53 | + 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'); |
| 53 | die(); | 54 | die(); |
| 54 | $projectModel = new Project(); | 55 | $projectModel = new Project(); |
| 55 | $lists = $projectModel->list(['delete_status' => 0,'extend_type'=>0,'type'=>['in',[1,2,3,4,6]]], 'id', ['id']); | 56 | $lists = $projectModel->list(['delete_status' => 0,'extend_type'=>0,'type'=>['in',[1,2,3,4,6]]], 'id', ['id']); |
| 56 | foreach ($lists as $val) { | 57 | foreach ($lists as $val) { |
| 57 | echo date('Y-m-d H:i:s') . '开始--项目的id:'. $val['id'] . PHP_EOL; | 58 | echo date('Y-m-d H:i:s') . '开始--项目的id:'. $val['id'] . PHP_EOL; |
| 58 | ProjectServer::useProject($val['id']); | 59 | ProjectServer::useProject($val['id']); |
| 59 | - | 60 | + $aiBlogModel = new AiBlog(); |
| 61 | + $aiBlogModel->list(['status'=>2]); | ||
| 60 | DB::disconnect('custom_mysql'); | 62 | DB::disconnect('custom_mysql'); |
| 61 | } | 63 | } |
| 62 | return true; | 64 | return true; |
-
请 注册 或 登录 后发表评论