Explorar o código

查询店铺商品列表

moonsflyer hai 4 meses
pai
achega
21a318a942
Modificáronse 1 ficheiros con 8 adicións e 13 borrados
  1. 8 13
      phalapi/src/app/Api/Shop.php

+ 8 - 13
phalapi/src/app/Api/Shop.php

@@ -879,24 +879,19 @@ class Shop extends Api {
             return $rs;
             return $rs;
         }
         }
 
 
-        $list=[];
-        $nums=0;
-        if($uid>1){
 
 
-            $where=[];
-            $where['uid']=$uid;
-            $where['status']=1;
+        $where=[];
+        $where['uid']=$uid;
+        $where['status']=1;
 
 
-            $list = $domain->getGoodsList($where,$p);
-            $nums = $domain->countGoods($where);
+        $list = $domain->getGoodsList($where,$p);
+        $nums = $domain->countGoods($where);
 
 
-        }
-
-        $info['goods_nums']=$nums; //店铺在售商品重新赋值
-        $info['goods_list'] = $list;
+        $data['goods_nums']=$nums; //店铺在售商品重新赋值
+        $data['goods_list'] = $list;
 
 
 
 
-        return $info;
+        return $data;
     }
     }