moonsflyer 4 месяцев назад
Родитель
Сommit
0fc79932f8
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      phalapi/src/app/Api/Shop.php

+ 5 - 1
phalapi/src/app/Api/Shop.php

@@ -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);