Explorar o código

同步商品调整

haozi %!s(int64=5) %!d(string=hai) anos
pai
achega
7df39d2da5
Modificáronse 1 ficheiros con 5 adicións e 5 borrados
  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();