Merge branch 'feature/sku_crawl' into develop
This commit is contained in:
@@ -163,6 +163,11 @@ class BrandSeriesService
|
|||||||
$crawlService = new CrawlService();
|
$crawlService = new CrawlService();
|
||||||
$href = $crawlService->modelSearch($brand->brand_name . ' ' . $series->series_name);
|
$href = $crawlService->modelSearch($brand->brand_name . ' ' . $series->series_name);
|
||||||
$seriesId = $this->extractSeriesId($href);
|
$seriesId = $this->extractSeriesId($href);
|
||||||
|
|
||||||
|
if (empty($seriesId)) {
|
||||||
|
throw new \Exception('抓取失败,未找到该系列车型');
|
||||||
|
}
|
||||||
|
|
||||||
$client = new Client([
|
$client = new Client([
|
||||||
'verify' => false, // 禁用 SSL 验证
|
'verify' => false, // 禁用 SSL 验证
|
||||||
'timeout' => 10
|
'timeout' => 10
|
||||||
|
|||||||
Reference in New Issue
Block a user