From 950368f49574285ec4d3f37735738beb765e78f0 Mon Sep 17 00:00:00 2001 From: panliang <1163816051@qq.com> Date: Thu, 21 Jul 2022 11:33:01 +0800 Subject: [PATCH] produ --- app/Endpoint/Api/Http/Resources/ProduckSkuResource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Endpoint/Api/Http/Resources/ProduckSkuResource.php b/app/Endpoint/Api/Http/Resources/ProduckSkuResource.php index 2f4cbdef..8f7f422b 100644 --- a/app/Endpoint/Api/Http/Resources/ProduckSkuResource.php +++ b/app/Endpoint/Api/Http/Resources/ProduckSkuResource.php @@ -35,7 +35,7 @@ class ProduckSkuResource extends JsonResource 'buynote' => (string) $this->when($this->relationLoaded('buynote'), function () { return $this->buynote?->content; }), - 'growth_value' => (int) $this->growth_value, + 'growth_value' => (float) $this->growth_value, 'sales_value' => (int) $this->sales_value, 'is_bargaing' => $this->isBargaing() ? true : false, 'is_pre_sale' => !!$is_pre_sale,