|
|
@@ -369,8 +369,8 @@ class OwnerPriceOperationService
|
|
|
private function changeUnit($ownerId,$commodity)
|
|
|
{
|
|
|
if (!$commodity)return -4;
|
|
|
- if ($commodity->pack_spec)return $commodity->pack_spec;
|
|
|
- $pack = app("CommodityService")->getPack($ownerId,$commodity->sku);
|
|
|
+ if ($commodity["pack_spec"])return $commodity["pack_spec"];
|
|
|
+ $pack = app("CommodityService")->getPack($ownerId,$commodity["sku"]);
|
|
|
if (!$pack)return -6;
|
|
|
return $pack;
|
|
|
}
|