Sfoglia il codice sorgente

同步商品调整

haozi 5 anni fa
parent
commit
7df39d2da5
1 ha cambiato i file con 5 aggiunte e 5 eliminazioni
  1. 5 5
      app/Services/CommodityService.php

+ 5 - 5
app/Services/CommodityService.php

@@ -264,12 +264,12 @@ Class CommodityService
             return $barcodes;
         })();
         //
-        $commodities=$this->get_([$ownerId],[$sku],[],true);
-        if ($commodities->first()){
-            $commodity=$commodities->first();
-        }else{
+//        $commodities=$this->get_([$ownerId],[$sku],[],true);
+//        if ($commodities->first()){
+//            $commodity=$commodities->first();
+//        }else{
             $commodity = $this->firstOrCreate(['owner_id' => $ownerId, 'sku' => $sku]);
-        }
+//        }
         $commodityBarcodes = $commodity['barcodes'] ?? new Collection();