|
|
|
@ -103,7 +103,12 @@ class AdminImport extends BaseService |
|
|
|
|
{ |
|
|
|
|
$service = new \app\job\service\goods\Collector(); |
|
|
|
|
foreach ($list as $item) { |
|
|
|
|
|
|
|
|
|
//sku存在了就不抓取了 |
|
|
|
|
$info = GoodsModel::where('goods_no', $item['C'])->where('store_id', $storeId)->where('is_delete',0)->find(); |
|
|
|
|
if ($info) { |
|
|
|
|
$this->successCount++; |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
$data = $this->createData($item, $storeId); |
|
|
|
|
$service->single($item['D'], $data, $storeId); |
|
|
|
|
// 记录导入成功 |
|
|
|
|