From 4a5dc2fea7180d4eccf0b424e0c1b1b1645ed875 Mon Sep 17 00:00:00 2001 From: wangxinglong <2371974647@qq.com> Date: Mon, 13 Jun 2022 09:40:34 +0800 Subject: [PATCH] setter --- app/repository/SpuRepository.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/repository/SpuRepository.php b/app/repository/SpuRepository.php index 26d9a7f..f1a1943 100755 --- a/app/repository/SpuRepository.php +++ b/app/repository/SpuRepository.php @@ -143,11 +143,11 @@ class SpuRepository extends Repository public function listForFront(array $params = [], callable $callback = null, array $order = [], array $where = []): array { $page = $params['page'] ?? 1; - $size = $params['size'] ?? 10; + $size = $params['size'] ?? 0; $page = (!is_numeric($page) || $page <= 0) ? 1 : $page; $size = (!is_numeric($size) || $size <= 0) ? 10 : $size; - + $size = 0; event('SpuCheck'); $searchMap = $where;