From c22ceaa5f99f2b72bc844f0376ae3502ceae4fee Mon Sep 17 00:00:00 2001 From: wangxinglong <2371974647@qq.com> Date: Mon, 8 Aug 2022 17:58:57 +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 e1b13d7..d6670f4 100755 --- a/app/repository/SpuRepository.php +++ b/app/repository/SpuRepository.php @@ -144,11 +144,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'] ?? 0; + $size = $params['size'] ?? 10; $page = (!is_numeric($page) || $page <= 0) ? 1 : $page; $size = (!is_numeric($size) || $size <= 0) ? 10 : $size; - + event('SpuCheck'); $searchMap = $where;