diff --git a/app/openapi/controller/v1/Product.php b/app/openapi/controller/v1/Product.php index 5b4354e6..3a99b72d 100644 --- a/app/openapi/controller/v1/Product.php +++ b/app/openapi/controller/v1/Product.php @@ -35,7 +35,6 @@ class Product 'name', 'short_name', 'cover_image', - 'desc', 'deleted_at' ]) ->where(function($query) use($params) { @@ -101,6 +100,7 @@ class Product ]) ->withoutField([ 'language_id', + 'desc', 'stock_qty', 'seo_title', 'seo_keywords', @@ -112,7 +112,7 @@ class Product ->bypk($id) ->hidden(['category_id']) ->find(); -// dump($product);exit; + // 处理封面图 if (!empty($product['cover_image']) && !str_starts_with($product['cover_image'], 'http')) { $product['cover_image'] = image_domain_concat($product['cover_image']);