diff --git a/app/common/service/UsedCarService.php b/app/common/service/UsedCarService.php index ca4ee77..4d95d6b 100644 --- a/app/common/service/UsedCarService.php +++ b/app/common/service/UsedCarService.php @@ -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 = []; diff --git a/config/plugin/webman/log/middleware.php b/config/plugin/webman/log/middleware.php index 7c7b0a9..fdd6d1c 100644 --- a/config/plugin/webman/log/middleware.php +++ b/config/plugin/webman/log/middleware.php @@ -12,10 +12,10 @@ * @license http://www.opensource.org/licenses/mit-license.php MIT License */ -use Webman\Log\Middleware; - -return [ - '@' => [ - Middleware::class - ] -]; +//use Webman\Log\Middleware; +// +//return [ +// '@' => [ +// Middleware::class +// ] +//];