商品图片

This commit is contained in:
TL 2022-07-26 17:24:50 +08:00
parent 6fcd8141b3
commit 7470ca3a82
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ class ProductDetail extends JsonResource
'description' => $this->description->description ?? '',
'images' => array_map(function ($image) {
return [
'image' => image_resize($image, 600, 600),
'image' => image_resize($image, 800, 800),
'thumb' => image_resize($image, 150, 150)
];
}, $this->images ?? []),

View File

@ -23,7 +23,7 @@ class SkuDetail extends JsonResource
'position' => $this->position,
'images' => array_map(function ($image) {
return [
'image' => image_resize($image, 600, 600),
'image' => image_resize($image, 800, 800),
'thumb' => image_resize($image, 150, 150)
];
}, $this->images ?? []),