作者 jiawen
1 个管道 的构建 通过 耗费 0 秒

调试OK

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