v1 修改完成
This commit is contained in:
parent
1b9973bf07
commit
c86d9a8087
|
|
@ -53,7 +53,7 @@ class ProductDetail extends JsonResource
|
|||
'in_wishlist' => $this->inCurrentWishlist->id ?? 0,
|
||||
'active' => (bool) $this->active,
|
||||
'price_setting' => $this->price_setting ?? '',
|
||||
'numPrices' => numPricesDetail::collection($this->numprices)->jsonSerialize() ?? '',
|
||||
'numPrices' => NumPricesDetail::collection($this->numprices)->jsonSerialize() ?? '',
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ class ProductSimple extends JsonResource
|
|||
'category_id' => $this->category_id ?? null,
|
||||
'in_wishlist' => $this->inCurrentWishlist->id ?? 0,
|
||||
'price_setting' => $this->price_setting ?? '',
|
||||
'numprices' => numPricesDetail::collection($this->numprices)->jsonSerialize() ?? '',
|
||||
'numprices' => NumPricesDetail::collection($this->numprices)->jsonSerialize() ?? '',
|
||||
|
||||
'images' => array_map(function ($item) {
|
||||
return image_resize($item, 400, 400);
|
||||
|
|
|
|||
Loading…
Reference in New Issue