Skip to content

Commit

Permalink
手机h5,菜单排序问题
Browse files Browse the repository at this point in the history
  • Loading branch information
fancyecommerce committed Apr 2, 2020
1 parent 9fbbb55 commit 998bf7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion services/category/CategoryMongodb.php
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ protected function getChildCate($category_id)
'parent_id' => $category_id,
'status' => $this->getCategoryEnableStatus(),
'menu_show' => $this->getCategoryMenuShowStatus(),
])->all();
])->orderBy(['sort_order' => SORT_DESC]) ->all();
$arr = [];
if (is_array($data) && !empty($data)) {
foreach ($data as $one) {
Expand Down
2 changes: 1 addition & 1 deletion services/category/CategoryMysqldb.php
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ protected function getChildCate($category_id)
'parent_id' => $category_id,
'status' => $this->getCategoryEnableStatus(),
'menu_show' => $this->getCategoryMenuShowStatus(),
])->all();
])->orderBy(['sort_order' => SORT_DESC])->all();
$arr = [];
if (is_array($data) && !empty($data)) {
foreach ($data as $one) {
Expand Down

0 comments on commit 998bf7e

Please sign in to comment.