From 5f9e98367f86af250b3b53a85e3f92bb62e8fbe7 Mon Sep 17 00:00:00 2001 From: "WIN-C27C5MSVTPO\\16961" <1696136552@qq.com> Date: Mon, 19 Jan 2026 14:48:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=A6=E8=BE=86=E4=B8=8B=E6=9E=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/utils/crawl/service/UsedCarCrawlSingle.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/common/utils/crawl/service/UsedCarCrawlSingle.php b/app/common/utils/crawl/service/UsedCarCrawlSingle.php index 63b4744..c04cd10 100644 --- a/app/common/utils/crawl/service/UsedCarCrawlSingle.php +++ b/app/common/utils/crawl/service/UsedCarCrawlSingle.php @@ -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}"); }