|
@@ -459,7 +459,7 @@ class OrderService extends BaseService
|
|
|
$datas = RedisService::get($cacheKey);
|
|
|
if (empty($datas)) {
|
|
|
$showNum = ConfigService::make()->getConfigByCode('show_history_goods_num', 4);
|
|
|
- $pageSize = $showNum ? $showNum : $pageSize;
|
|
|
+ $pageSize = $pageSize ? $pageSize : $showNum;
|
|
|
$model = GoodsModel::with(['category'])->from('goods as a')
|
|
|
->leftJoin('orders_goods as b', 'a.goods_id', '=', 'b.goods_id')
|
|
|
->leftJoin('orders as c', 'b.order_no', '=', 'c.order_no')
|