From 9da3ce7619d6ca709681963d4eed9d160cded009 Mon Sep 17 00:00:00 2001 From: panliang <1163816051@qq.com> Date: Wed, 15 Feb 2023 16:48:22 +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 33a4bc6f..d99662d8 100644 --- a/app/Endpoint/Api/Http/Controllers/StoreController.php +++ b/app/Endpoint/Api/Http/Controllers/StoreController.php @@ -43,7 +43,7 @@ class StoreController extends Controller $list = $store->productSpus() ->with(['specs']) - ->distinct('store_product_skus.spu_id') + ->distinct('product_spus.id') ->filter($input) ->wherePivot('status', 1) ->simplePaginate(Paginator::resolvePerPage('per_page', 20, 50));