商品图片
This commit is contained in:
parent
e31d582754
commit
18945b8843
|
|
@ -21,7 +21,7 @@ class SkuDetail extends JsonResource
|
||||||
'id' => $this->id,
|
'id' => $this->id,
|
||||||
'variants' => $this->variants,
|
'variants' => $this->variants,
|
||||||
'position' => $this->position,
|
'position' => $this->position,
|
||||||
'image' => array_map(function ($image) {
|
'images' => array_map(function ($image) {
|
||||||
return image_resize($image, 600, 600);
|
return image_resize($image, 600, 600);
|
||||||
}, $this->images ?? []),
|
}, $this->images ?? []),
|
||||||
'model' => $this->model,
|
'model' => $this->model,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue