Skip to content

Commit

Permalink
appserver入口:后台关闭分类无效的问题修复 && product services filter select问题
Browse files Browse the repository at this point in the history
  • Loading branch information
fancyecommerce committed Jan 10, 2021
1 parent ec50fff commit 116b032
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions services/category/CategoryMongodb.php
Expand Up @@ -305,6 +305,10 @@ public function getTreeArr($rootCategoryId = '', $lang = '', $appserver=false, $
} else {
$where = ['parent_id' => $rootCategoryId];
}
if ($appserver) {
$where['status']= $this->getCategoryEnableStatus();
$where['menu_show']= $this->getCategoryMenuShowStatus();
}
$orderBy = ['sort_order' => SORT_DESC];
$categorys = $this->_categoryModel->find()
->asArray()
Expand Down
4 changes: 4 additions & 0 deletions services/category/CategoryMysqldb.php
Expand Up @@ -372,6 +372,10 @@ public function getTreeArr($rootCategoryId = '', $lang = '', $appserver=false, $
} else {
$where = ['parent_id' => $rootCategoryId];
}
if ($appserver) {
$where['status']= $this->getCategoryEnableStatus();
$where['menu_show']= $this->getCategoryMenuShowStatus();
}
$orderBy = ['sort_order' => SORT_DESC];
$categorys = $this->_categoryModel->find()
->asArray()
Expand Down
1 change: 1 addition & 0 deletions services/product/ProductMongodb.php
Expand Up @@ -879,6 +879,7 @@ public function getFrontCategoryProductsAll($filter){
$where_c[] = [$k => $v];
}
$filter = [
'select' => $select,
'numPerPage' => $numPerPage,
'pageNum' => $pageNum,
'orderBy' => $orderBy,
Expand Down
1 change: 1 addition & 0 deletions services/product/ProductMysqldb.php
Expand Up @@ -1048,6 +1048,7 @@ public function getFrontCategoryProductsAll($filter){
$numPerPage = $filter['numPerPage'];
$select = $filter['select'];
$filter = [
'select' => $select,
'numPerPage' => $numPerPage,
'pageNum' => $pageNum,
'orderBy' => $orderBy,
Expand Down

0 comments on commit 116b032

Please sign in to comment.