From 6ce395f544766faad2f2313e96f3c30ca4b0c71a Mon Sep 17 00:00:00 2001 From: Edward Yang Date: Tue, 26 Jul 2022 15:50:00 +0800 Subject: [PATCH] fixed product image --- beike/Services/ImageService.php | 4 ++-- themes/default/shared/product.blade.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/beike/Services/ImageService.php b/beike/Services/ImageService.php index 3e39bb4f..4bfd1126 100644 --- a/beike/Services/ImageService.php +++ b/beike/Services/ImageService.php @@ -22,10 +22,10 @@ class ImageService const PLACEHOLDER_IMAGE = 'catalog/placeholder.png'; /** - * @param string $image + * @param $image * @throws \Exception */ - public function __construct(string $image) + public function __construct($image) { $this->image = $image ?: self::PLACEHOLDER_IMAGE; $imagePath = public_path($this->image); diff --git a/themes/default/shared/product.blade.php b/themes/default/shared/product.blade.php index 34f70683..fc1ab4d6 100644 --- a/themes/default/shared/product.blade.php +++ b/themes/default/shared/product.blade.php @@ -1,8 +1,8 @@
-
+
{{ $product->description->name }}
{{ $product->master_sku->price }} {{ $product->master_sku->origin_price }}
-
\ No newline at end of file +