|
|
@@ -54,6 +54,7 @@ class Shops extends Base
|
|
|
$plat_id = $this->request->post('plat_id/d', 0); //平台
|
|
|
$shop_id = $this->request->post('shop_id/d', 0); //店铺
|
|
|
$variety_id = $this->request->post('variety_id/d', 0); //品种
|
|
|
+ $limit = $this->request->post('limit/d', 15); //条数
|
|
|
$where['a.user_id'] = $this->userinfo['id'];
|
|
|
if($plat_id > 0) $where['a.plat_id'] = $plat_id;
|
|
|
if($shop_id > 0) $where['a.shop_id'] = $shop_id;
|
|
|
@@ -64,7 +65,7 @@ class Shops extends Base
|
|
|
->leftjoin('product_config d', 'a.spec_id = d.id') //规格
|
|
|
->field('a.id,a.plat_id,a.shop_id,a.createtime,a.num, b.name shop_name,c.title variety_name,d.title spec_name')
|
|
|
->where($where)
|
|
|
- ->paginate(15);
|
|
|
+ ->paginate($limit);
|
|
|
$this->success('ok', $result);
|
|
|
}
|
|
|
|