diff --git a/services/category/CategoryMongodb.php b/services/category/CategoryMongodb.php index 57e91ea981f1dfa2116ffe3972d9fa411fd2714e..075bde3ac65a075edb2ef9d9b3eda6667dc3d7df 100644 --- a/services/category/CategoryMongodb.php +++ b/services/category/CategoryMongodb.php @@ -387,6 +387,7 @@ class CategoryMongodb extends Service implements CategoryInterface $cate = $this->_categoryModel->find()->asArray()->where([ 'parent_id' => $_id, 'status' => $this->getCategoryEnableStatus(), + 'menu_show' => $this->getCategoryMenuShowStatus(), ])->all(); if (is_array($cate) && !empty($cate)) { foreach ($cate as $one) { @@ -416,6 +417,7 @@ class CategoryMongodb extends Service implements CategoryInterface $cate = $this->_categoryModel->find()->asArray()->where([ 'parent_id' => $parent_id, 'status' => $this->getCategoryEnableStatus(), + 'menu_show' => $this->getCategoryMenuShowStatus(), ])->all(); //var_dump($cate); //echo '$$$$$$$$$$'; @@ -456,6 +458,7 @@ class CategoryMongodb extends Service implements CategoryInterface $data = $this->_categoryModel->find()->asArray()->where([ 'parent_id' => $category_id, 'status' => $this->getCategoryEnableStatus(), + 'menu_show' => $this->getCategoryMenuShowStatus(), ])->all(); $arr = []; if (is_array($data) && !empty($data)) {