From 18945b8843166548f2ac292f1faebe2b98ab5433 Mon Sep 17 00:00:00 2001 From: TL Date: Tue, 26 Jul 2022 17:16:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- beike/Shop/Http/Resources/SkuDetail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beike/Shop/Http/Resources/SkuDetail.php b/beike/Shop/Http/Resources/SkuDetail.php index 1e7d3b38..453396e2 100644 --- a/beike/Shop/Http/Resources/SkuDetail.php +++ b/beike/Shop/Http/Resources/SkuDetail.php @@ -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,