|
|
@@ -183,6 +183,7 @@ class Shop extends Api {
|
|
|
|
|
|
'getShopGoodsList'=>array(
|
|
|
'uid' => array('name' => 'uid', 'type' => 'int', 'desc' => '店铺用户ID'),
|
|
|
+ 'three_classid' => array('name' => 'three_classid', 'type' => 'int', 'desc' => '商品三级分类id'),
|
|
|
'p' => array('name' => 'p', 'type' => 'int', 'default'=>'1', 'desc' => '页码'),
|
|
|
),
|
|
|
|
|
|
@@ -866,6 +867,7 @@ class Shop extends Api {
|
|
|
$rs = array('code' => 0, 'msg' => '', 'info' => array());
|
|
|
|
|
|
$uid=\App\checkNull($this->uid);
|
|
|
+ $three_classid=\App\checkNull($this->three_classid);
|
|
|
$p=\App\checkNull($this->p);
|
|
|
|
|
|
|
|
|
@@ -883,7 +885,9 @@ class Shop extends Api {
|
|
|
$where=[];
|
|
|
$where['uid']=$uid;
|
|
|
$where['status']=1;
|
|
|
-
|
|
|
+ if(!empty($three_classid)){
|
|
|
+ $where['three_classid']=$three_classid;
|
|
|
+ }
|
|
|
$list = $domain->getGoodsList($where,$p);
|
|
|
$nums = $domain->countGoods($where);
|
|
|
|