update
This commit is contained in:
@ -65,6 +65,7 @@ class BaiduRecordCommand extends BaseSpider
|
||||
$query = $query->where('id', $id);
|
||||
}
|
||||
$query?->each(function($item) use (&$requestCookie, &$cache) {
|
||||
sleep(1);
|
||||
try {
|
||||
if (!$item->platform) {
|
||||
throw new \Exception('没找到平台!!');
|
||||
@ -87,8 +88,8 @@ class BaiduRecordCommand extends BaseSpider
|
||||
if ($cookie) {
|
||||
$requestCookie = $cookie;
|
||||
}
|
||||
var_dump($res);
|
||||
if (stripos($res, '验证') !== false) {
|
||||
|
||||
if (stripos($res, '验证') !== false || stripos($res, 'wappass') !== false) {
|
||||
$this->log->info('有验证码!!');
|
||||
}
|
||||
|
||||
@ -104,7 +105,7 @@ class BaiduRecordCommand extends BaseSpider
|
||||
$this->log->info($exception->getTraceAsString());
|
||||
}
|
||||
|
||||
}, 1);
|
||||
}, 10);
|
||||
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user