Merge branch 'develop'

# Conflicts:
#	app/common/service/StockOrdersService.php
This commit is contained in:
mzl
2025-11-04 15:43:42 +08:00
parent aabd0f4634
commit 6c59fdef10
5 changed files with 264 additions and 62 deletions
+14
View File
@@ -73,4 +73,18 @@ class CrawlService
});
return $href;
}
/**
* 关键词搜索的更多页面,通过面包屑抓取品牌与系列
* @param $series
* @return mixed|string
*/
public function crawlBrandSeries($series)
{
$url = "https://www.dongchedi.com/auto/series/" . $series . "?anchorId=carModels";
$ql = QueryList::get($url);
$result = $ql->find('div.breadcrumb_wrap__2GLeU span')->texts()->all();
return ['brand' => $result[2], 'series' => $result[3]];
}
}