From 5424e8b2cb948d974e8d92795950c64af5804711 Mon Sep 17 00:00:00 2001 From: jsasg <735273025@qq.com> Date: Sat, 5 Jul 2025 13:47:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20openapi=E5=8F=96=E6=B6=88=E4=BA=A7?= =?UTF-8?q?=E5=93=81=E8=AF=A6=E6=83=85sku->sort=E5=AD=97=E6=AE=B5=E8=BE=93?= =?UTF-8?q?=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/openapi/controller/v1/Product.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/openapi/controller/v1/Product.php b/app/openapi/controller/v1/Product.php index 3a99b72d..2cc8b7e2 100644 --- a/app/openapi/controller/v1/Product.php +++ b/app/openapi/controller/v1/Product.php @@ -75,7 +75,7 @@ class Product 'params' => fn($query) => $query->field(['product_id', 'name', 'value']) ->hidden(['product_id']), // 关联sku - 'skus' => fn($query) => $query->withoutField(['created_at', 'updated_at']) + 'skus' => fn($query) => $query->withoutField(['sort', 'created_at', 'updated_at']) ->with([ 'sku_attr' => fn($query) => $query->with('attr')->hidden(['sku_id', 'attr_id']) ])