update
This commit is contained in:
@ -68,7 +68,10 @@ class BaiduRecordCommand extends BaseSpider
|
|||||||
if ($id) {
|
if ($id) {
|
||||||
$query = $query->where('id', $id);
|
$query = $query->where('id', $id);
|
||||||
}
|
}
|
||||||
$query?->each(function($item) use (&$requestCookie, &$cache) {
|
|
||||||
|
$query = $query->get();
|
||||||
|
|
||||||
|
foreach ($query as $index => $item) {
|
||||||
sleep(3);
|
sleep(3);
|
||||||
try {
|
try {
|
||||||
if (!$item->platform) {
|
if (!$item->platform) {
|
||||||
@ -111,8 +114,8 @@ class BaiduRecordCommand extends BaseSpider
|
|||||||
$this->log->info($exception->getMessage());
|
$this->log->info($exception->getMessage());
|
||||||
$this->log->info($exception->getTraceAsString());
|
$this->log->info($exception->getTraceAsString());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}, 10);
|
return;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user