正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -77,7 +77,7 @@ class ProductController extends RestBaseController | @@ -77,7 +77,7 @@ class ProductController extends RestBaseController | ||
77 | ->where($condition) | 77 | ->where($condition) |
78 | ->field('p.id,p.name,p.logo,p.upper_limit,p.lower_limit,p.rate,p.loan_time,p.loan_period,c.company') | 78 | ->field('p.id,p.name,p.logo,p.upper_limit,p.lower_limit,p.rate,p.loan_time,p.loan_period,c.company') |
79 | ->order('p.create_time desc') | 79 | ->order('p.create_time desc') |
80 | - ->select(false); | 80 | + ->paginate($per_page); |
81 | if ($result === false) { | 81 | if ($result === false) { |
82 | $this->error(['code'=>'40000','msg'=>'获取失败']); | 82 | $this->error(['code'=>'40000','msg'=>'获取失败']); |
83 | } | 83 | } |
-
请 注册 或 登录 后发表评论