正在显示
1 个修改的文件
包含
6 行增加
和
7 行删除
| @@ -31,12 +31,11 @@ class lyhDemo extends Command | @@ -31,12 +31,11 @@ class lyhDemo extends Command | ||
| 31 | protected $description = '更新路由'; | 31 | protected $description = '更新路由'; |
| 32 | 32 | ||
| 33 | public function handle(){ | 33 | public function handle(){ |
| 34 | - $aiBlogTaskModel = new AiBlogTask(); | ||
| 35 | - $lists = $aiBlogTaskModel->distinct()->pluck('project_id')->toArray(); | ||
| 36 | - foreach ($lists as $v){ | ||
| 37 | - echo '执行的项目id:'.$v; | ||
| 38 | - Artisan::call('save_ai_blog_list', ['project_id' => $v]); | ||
| 39 | - } | ||
| 40 | - return true; | 34 | + $client = new \GuzzleHttp\Client(); |
| 35 | + $data = $client->request('GET', 'https://quanqiusou.cn/extend_api/v6/update.php?postid='.'13810', [ | ||
| 36 | + 'proxy' => env('CURL_PROXY'), // 代理服务器地址和端口号 | ||
| 37 | + ])->getBody()->getContents(); | ||
| 38 | + $data = json_decode($data, true); | ||
| 39 | + dd($data); | ||
| 41 | } | 40 | } |
| 42 | } | 41 | } |
-
请 注册 或 登录 后发表评论