汽车之家抓取

This commit is contained in:
2026-01-22 18:08:51 +08:00
parent c7d3fdc30e
commit da1dc7a3da
3 changed files with 77 additions and 6 deletions
+3 -1
View File
@@ -11,6 +11,7 @@ use app\common\service\UsedCarService;
use app\common\utils\crawl\service\UsedCarCrawlSingle;
use app\common\utils\pdf\service\MpdfDriver;
use support\exception\BusinessException;
use support\Log;
use support\Request;
class UsedCarController extends BaseController
@@ -186,7 +187,8 @@ class UsedCarController extends BaseController
if (str_contains($e->getMessage(), '404 Not Found')){
return $this->error('车辆已下架或找不到页面');
}
return $this->error($e->getMessage());
Log::error('crawlCar fail',['param' => $request->get('url'),'message' => $e->getMessage().$e->getFile().$e->getLine()]);
return $this->error($e->getMessage().$e->getFile().$e->getLine());
}
}