@@ -11,6 +11,10 @@ class Buy extends Core
public function getGoods()
{
+ $this->data['data'] = Dever::load('shop/lib/info')->getGoods($this->shop_id, false, '1,2,3', false, 1);
+
+ return $this->data;
return Dever::load('mshop/out')->getGoods();
$where = array();
@@ -64,7 +64,7 @@ class Info
}
# 获取店铺的商品列表
- public function getGoods($shop, $column = false, $price_type = false, $sell_type = false)
+ public function getGoods($shop, $column = false, $price_type = false, $sell_type = false, $status = false)
$table = 'shop/goods';
$where['shop_id'] = isset($shop['id']) ? $shop['id'] : $shop;
@@ -75,6 +75,10 @@ class Info
} else {
$method = 'getDataPage';
+ if ($status) {
+ $where['status'] = 1;
+ }
$name = Dever::input('name');
if ($name) {