master
wangxinglong 2022-06-13 09:40:34 +08:00
parent 9de6b7edd4
commit 4a5dc2fea7
1 changed files with 2 additions and 2 deletions

View File

@ -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;