抓取
This commit is contained in:
@@ -124,10 +124,10 @@ class UsedCarService
|
||||
// $crawlSeries = $crawlService->brandSeries($keyword);
|
||||
// }
|
||||
//按关键词为品牌名抓取所有的系列名
|
||||
$crawlSeries = $crawlService->brandSeries($keyword);
|
||||
// $crawlSeries = $crawlService->brandSeries($keyword);
|
||||
|
||||
if (empty($seriesId) && empty($crawlSeries)) {
|
||||
throw new \Exception('抓取失败,未找到该系列车型');
|
||||
if (empty($seriesId)) {
|
||||
throw new \Exception('抓取失败,请使用更精确的关键词');
|
||||
}
|
||||
|
||||
// $brandSerieses = [];
|
||||
|
||||
Reference in New Issue
Block a user