From 43250b2d34bd004055e94e1592ab3b30be7ca362 Mon Sep 17 00:00:00 2001 From: panliang <1163816051@qq.com> Date: Tue, 26 Jul 2022 17:13:37 +0800 Subject: [PATCH] 1 --- app/Endpoint/Api/Http/Resources/StoreProductResource.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Endpoint/Api/Http/Resources/StoreProductResource.php b/app/Endpoint/Api/Http/Resources/StoreProductResource.php index e5f387c0..f0dcf64e 100644 --- a/app/Endpoint/Api/Http/Resources/StoreProductResource.php +++ b/app/Endpoint/Api/Http/Resources/StoreProductResource.php @@ -15,7 +15,8 @@ class StoreProductResource extends JsonResource 'sell_price' => (string) $this->sell_price_format, 'vip_price' => (string) $this->vip_price_format, 'market_price' => (string) $this->market_price_format, - 'amount' => (int) $this->pivot->amount + 'amount' => (int) $this->pivot->amount, + 'specs' => (array) $this->specs, ]; } }