...
|
...
|
@@ -61,6 +61,9 @@ class ProductController extends RestBaseController |
|
|
$per_page = $data['per_page'] ? : config('per_page');
|
|
|
$condition['p.type'] = 1;//上架产品
|
|
|
$condition['c.user_id'] = $data['user_id'];
|
|
|
if ($data['company']) {
|
|
|
$condition['p.job'] = $data['company'];
|
|
|
}
|
|
|
if ($data['policy']) {
|
|
|
$condition['p.policy'] = $data['policy'];
|
|
|
}
|
...
|
...
|
@@ -74,7 +77,7 @@ class ProductController extends RestBaseController |
|
|
->where($condition)
|
|
|
->field('p.id,p.name,p.logo,p.upper_limit,p.lower_limit,p.rate,p.loan_time,p.loan_period,c.company')
|
|
|
->order('p.create_time desc')
|
|
|
->paginate($per_page);
|
|
|
->select(false);
|
|
|
if ($result === false) {
|
|
|
$this->error(['code'=>'40000','msg'=>'获取失败']);
|
|
|
}
|
...
|
...
|
|