From 799e689d9f969553d919311816980636b469dfc7 Mon Sep 17 00:00:00 2001 From: Edward Yang Date: Fri, 6 Jan 2023 18:15:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E8=AF=A6=E6=83=85=E9=A1=B5?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=20TDK?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- beike/Shop/Http/Resources/ProductDetail.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/beike/Shop/Http/Resources/ProductDetail.php b/beike/Shop/Http/Resources/ProductDetail.php index a6828f8e..dcca8d0a 100644 --- a/beike/Shop/Http/Resources/ProductDetail.php +++ b/beike/Shop/Http/Resources/ProductDetail.php @@ -25,6 +25,9 @@ class ProductDetail extends JsonResource 'id' => $this->id, 'name' => $this->description->name ?? '', 'description' => $this->description->content ?? '', + 'meta_title' => $this->description->meta_title ?? '', + 'meta_keyword' => $this->description->meta_keyword ?? '', + 'meta_description' => $this->description->meta_description ?? '', 'brand_id' => $this->brand->id ?? 0, 'brand_name' => $this->brand->name ?? '', 'images' => array_map(function ($image) {