商品图片

This commit is contained in:
TL 2022-07-26 17:16:56 +08:00
parent e31d582754
commit 18945b8843
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ class SkuDetail extends JsonResource
'id' => $this->id,
'variants' => $this->variants,
'position' => $this->position,
'image' => array_map(function ($image) {
'images' => array_map(function ($image) {
return image_resize($image, 600, 600);
}, $this->images ?? []),
'model' => $this->model,