|
...
|
...
|
@@ -31,12 +31,11 @@ class lyhDemo extends Command |
|
|
|
protected $description = '更新路由';
|
|
|
|
|
|
|
|
public function handle(){
|
|
|
|
$aiBlogTaskModel = new AiBlogTask();
|
|
|
|
$lists = $aiBlogTaskModel->distinct()->pluck('project_id')->toArray();
|
|
|
|
foreach ($lists as $v){
|
|
|
|
echo '执行的项目id:'.$v;
|
|
|
|
Artisan::call('save_ai_blog_list', ['project_id' => $v]);
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
$client = new \GuzzleHttp\Client();
|
|
|
|
$data = $client->request('GET', 'https://quanqiusou.cn/extend_api/v6/update.php?postid='.'13810', [
|
|
|
|
'proxy' => env('CURL_PROXY'), // 代理服务器地址和端口号
|
|
|
|
])->getBody()->getContents();
|
|
|
|
$data = json_decode($data, true);
|
|
|
|
dd($data);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|