wesmiler 1 月之前
父节点
当前提交
7cfff92b34
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Services/Api/OrderService.php

+ 1 - 1
app/Services/Api/OrderService.php

@@ -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')