车辆下架
This commit is contained in:
@@ -42,7 +42,7 @@ class UsedCarCrawlSingle
|
||||
|
||||
public function crawlCar(string $url){
|
||||
$html = $this->fetchHtml($url);
|
||||
if ($html === '') {
|
||||
if ($html === '' || str_contains($html, '404 Not Found')) {
|
||||
throw new BusinessException("页面内容为空: {$url}");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user