Bläddra i källkod

同步商品调整

haozi 5 år sedan
förälder
incheckning
7df39d2da5
1 ändrade filer med 5 tillägg och 5 borttagningar
  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();