lqmac 8 months ago
parent c0d67879e1
commit f52b0fe582
  1. 7
      app/job/service/goods/AdminImport.php

@ -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);
// 记录导入成功

Loading…
Cancel
Save