Browse Source

修改提示

master
李可松 4 years ago
parent
commit
70289c1255
  1. 8
      app/Console/Commands/Collector.php

8
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 导入结束");
}
}

Loading…
Cancel
Save