Skip to content

Commit

Permalink
category mysqldb
Browse files Browse the repository at this point in the history
  • Loading branch information
fancyecommerce committed Dec 27, 2019
1 parent 262330a commit 452b183
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/category/CategoryMysqldb.php
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ protected function getOneLevelCateChild($category)
//'url_key' => $currentUrlKey,
//$category['current'] = true;
//$data[0] = $category;
$id = $category['id'];
$id = $category['_id'];
$name = $category['name'];
$url_key = $category['url_key'];
$cate = $this->_categoryModel->find()->asArray()->where([
Expand Down Expand Up @@ -542,7 +542,7 @@ protected function getAllParentCate($allParent)
if (is_array($allParent) && !empty($allParent)) {
foreach ($allParent as $k => $category) {
unset($d[$k]);
$category_id = $category['id'];
$category_id = $category['_id'];
$parent_id = $category['parent_id'];
if ($parent_id) {
$cate = $this->_categoryModel->find()->asArray()->where([
Expand Down

0 comments on commit 452b183

Please sign in to comment.