page($nextPage,10)->select(); if ($resp->isEmpty()) { $output->writeln("没有任务啦==".getDateFull()); $nextPage = null; return true; } foreach ($resp as $key=>$val) { $resp = Http::asJson()->post("https://api.jiandaoyun.com/api/v1/automation/tenant/69dc899f71c9656940c3db33/hooks/69e07cb9d9016a4b9d9e4b140bb32ba471357f09758bdc49",$val->toArray())->array(); print_r($resp); } $nextPage = $nextPage+1; $output->writeln("进入下一页=={$nextPage}==".getDateFull()); } } catch (\Throwable $throwable) { echo getDateFull()."==报错啦===".$throwable->getFile()."\n"; echo getDateFull()."==报错啦===".$throwable->getLine()."\n"; echo getDateFull()."==报错啦===".$throwable->getMessage()."\n"; } return true; } }