From 9f9941f45dd1ec131756b22e9be6a8cdede9cc5c Mon Sep 17 00:00:00 2001 From: jsasg <735273025@qq.com> Date: Sat, 5 Jul 2025 11:49:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20openapi=20=E4=BA=A7=E5=93=81=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=8F=96=E6=B6=88desc=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/openapi/controller/v1/Product.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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']);