From ac9428176a697b6739461e352907fdbf47cd80f5 Mon Sep 17 00:00:00 2001 From: panliang <1163816051@qq.com> Date: Wed, 15 Feb 2023 17:07:21 +0800 Subject: [PATCH] 1 --- app/Endpoint/Api/Http/Controllers/StoreController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Endpoint/Api/Http/Controllers/StoreController.php b/app/Endpoint/Api/Http/Controllers/StoreController.php index eb1c0186..f2d8fdf1 100644 --- a/app/Endpoint/Api/Http/Controllers/StoreController.php +++ b/app/Endpoint/Api/Http/Controllers/StoreController.php @@ -50,7 +50,7 @@ class StoreController extends Controller ->with(['specs']) ->filter($input) ->wherePivot('status', 1) - // ->groupBy('store_product_skus.product_spu_id') + ->groupBy('product_spus.id') ->simplePaginate(Paginator::resolvePerPage('per_page', 20, 50)); return StoreProductSpuResource::collection($list);