From 70289c125558a5c74186f39eae0e6bb968e3b1ae Mon Sep 17 00:00:00 2001 From: liapples Date: Fri, 5 Nov 2021 00:22:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Console/Commands/Collector.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Console/Commands/Collector.php b/app/Console/Commands/Collector.php index 8e63666..1301fa1 100644 --- a/app/Console/Commands/Collector.php +++ b/app/Console/Commands/Collector.php @@ -54,8 +54,8 @@ class Collector extends Command $this->line("供应商 $supplier_id 导入完毕"); } else { // $this->exists_update = false; - $this->tourist_line(); - $this->hotel(); +// $this->tourist_line(); +// $this->hotel(); $this->scenic(); // $this->db_img_replace(); $this->line('全部采集完毕'); @@ -92,14 +92,14 @@ class Collector extends Command } foreach ($ids as $supplier_id) { - $this->line('正在导入 ' . $supplier_id); + $this->line('正在导入供应商: ' . $supplier_id); array_walk($import_data, function ($v) use ($supplier_id) { $v['supplier_id'] = $supplier_id; unset($v['unique_id'], $v['site']); Product::updateOrCreate(['supplier_id' => $supplier_id, 'title' => $v['title']], $v); }); - $this->line("导入 $supplier_id 结束"); + $this->line("供应商 $supplier_id 导入结束"); } }