懂车帝移动端抓取

This commit is contained in:
2026-01-21 17:03:42 +08:00
parent 650f943037
commit 892325008c
3 changed files with 49 additions and 7 deletions
+2 -1
View File
@@ -154,7 +154,8 @@ class UsedCarController extends BaseController
if (empty($url)){
throw new BusinessException('url不能为空');
}
$info = (new UsedCarCrawlSingle())->crawlCar($url);
//$info = (new UsedCarCrawlSingle())->crawlCar($url);
$info = $this->service->selectCraw($url);
$data = [
'user_id' => $request->user['id'],
'product_name' => $info['title'],