diff --git a/FlyCube/Api/Controller/NormalController.class.php b/FlyCube/Api/Controller/NormalController.class.php index 6095a92..efbef3f 100644 --- a/FlyCube/Api/Controller/NormalController.class.php +++ b/FlyCube/Api/Controller/NormalController.class.php @@ -18,6 +18,7 @@ class NormalController extends PublicController public function getCategoryList() { $where['shop_id'] = $_REQUEST["shop_id"]; + $where['show'] = '1'; $order['sort'] = 'desc'; $field = array('id', 'pid', 'path', 'name', 'shop_id', 'sort', 'show', 'describe', 'photo', 'tag'); $categoryDb = D('category'); @@ -49,6 +50,7 @@ class NormalController extends PublicController { $where['shop_id'] = $_REQUEST["shop_id"]; $where['del'] = '0'; + $where['show'] = '1'; $order['sort'] = 'desc'; $order['id'] = 'desc'; $spuDb = D('spu');