This commit is contained in:
toom1996
2025-07-30 15:49:44 +08:00
parent b0196bb672
commit f63219793f

View File

@ -68,7 +68,10 @@ class BaiduRecordCommand extends BaseSpider
if ($id) {
$query = $query->where('id', $id);
}
$query?->each(function($item) use (&$requestCookie, &$cache) {
$query = $query->get();
foreach ($query as $index => $item) {
sleep(3);
try {
if (!$item->platform) {
@ -111,8 +114,8 @@ class BaiduRecordCommand extends BaseSpider
$this->log->info($exception->getMessage());
$this->log->info($exception->getTraceAsString());
}
}, 10);
}
return;
return;
}