商品详情页返回 TDK

This commit is contained in:
Edward Yang 2023-01-06 18:15:37 +08:00
parent 1948aeb866
commit 799e689d9f
1 changed files with 3 additions and 0 deletions

View File

@ -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) {