diff --git a/beike/Shop/Http/Resources/Account/WishlistDetail.php b/beike/Shop/Http/Resources/Account/WishlistDetail.php index 81818217..ea9f2941 100644 --- a/beike/Shop/Http/Resources/Account/WishlistDetail.php +++ b/beike/Shop/Http/Resources/Account/WishlistDetail.php @@ -29,8 +29,9 @@ class WishlistDetail extends JsonResource 'product_id' => $this->product_id, 'image' => image_resize($image), 'product_name' => $product->description->name, - 'price' => currency_format($product->price) + 'price' => currency_format($masterSku->price) ]; + return $data; } }