diff --git a/app/common/controller/UsedCarController.php b/app/common/controller/UsedCarController.php index e760a90..08a9d0b 100644 --- a/app/common/controller/UsedCarController.php +++ b/app/common/controller/UsedCarController.php @@ -152,9 +152,9 @@ class UsedCarController extends BaseController 'crawl_brand_id' => $info['brand_id'], 'crawl_series_id' => $info['series_id'], 'used_car_id' => $info['used_car_id'], + 'plate_time' => $info['plate_time'], ]; - return $this->success($data); } catch (\Throwable $e) { return $this->error($e->getMessage().'|'.$e->getLine().$e->getFile().$e->getTraceAsString()); diff --git a/app/common/utils/crawl/service/UsedCarCrawlSingle.php b/app/common/utils/crawl/service/UsedCarCrawlSingle.php index 3ad5f35..63b4744 100644 --- a/app/common/utils/crawl/service/UsedCarCrawlSingle.php +++ b/app/common/utils/crawl/service/UsedCarCrawlSingle.php @@ -310,6 +310,7 @@ class UsedCarCrawlSingle $displacement = $this->getParamValue($otherParams, '排量'); $gearbox = $this->getParamValue($otherParams, '变速箱'); $sourcePlace = $this->getParamValue($otherParams, '车源地'); + $plateTime = $this->getParamValue($otherParams, '上牌时间'); $formatCarInfo = [ 'displacement' => $displacement, @@ -353,6 +354,7 @@ class UsedCarCrawlSingle 'source_place' => $sourcePlace, 'brand_id' => $brand_id, 'series_id' => $series_id, + 'plate_time' => $plateTime, ]; }