From 1eab1a75d7d04fc0512861c9071ad5ce3cde3415 Mon Sep 17 00:00:00 2001 From: lqmac Date: Tue, 4 Jun 2024 00:06:23 +0800 Subject: [PATCH] 1 --- app/store/model/Order.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/store/model/Order.php b/app/store/model/Order.php index 3fe15d9d..045ce5f8 100644 --- a/app/store/model/Order.php +++ b/app/store/model/Order.php @@ -105,7 +105,7 @@ class Order extends OrderModel $query = $query->whereOr($filterOr); } $list = $query->order(['order.create_time' => 'desc']) - ->paginate(10); + ->paginate($param['pageSize'] ?? 15); return $list; } @@ -161,7 +161,7 @@ class Order extends OrderModel } // 加载关联订单数据 $list = $query->order(['order.create_time' => 'desc']) - ->paginate(10); + ->paginate($param['pageSize'] ?? 15); $list = static::preload($list, ['goods.image', 'user.avatar', 'address', 'delivery'], true); return $list; }