Skip to content

Commit

Permalink
Add notes and partial modification
Browse files Browse the repository at this point in the history
  • Loading branch information
root authored and root committed Sep 20, 2016
1 parent da3818a commit 9088d4a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
25 changes: 11 additions & 14 deletions services/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ public function init(){
parent::init();
}


/**
* init search engine index
*/
Expand Down Expand Up @@ -100,9 +99,10 @@ protected function actionGetSearchProductColl($select,$where,$pageNum,$numPerPag
}
}


/**
* 得到搜索的sku列表侧栏的过滤
* @property $filter_attr | Array
* @property $where | Array
*/
protected function actionGetFrontSearchFilter($filter_attr,$where){
$currentLangCode= Yii::$service->store->currentLangCode;
Expand All @@ -126,9 +126,9 @@ protected function actionGetFrontSearchFilter($filter_attr,$where){
}
}


/**
* 通过product_id删除搜索数据
* @property $product_id | \mongoId
*/
protected function actionRemoveByProductId($product_id){
$searchEngineList = $this->getAllChildServiceName();
Expand All @@ -139,15 +139,12 @@ protected function actionRemoveByProductId($product_id){
}
}
}








}











2 changes: 1 addition & 1 deletion services/category/CategoryMongodb.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ protected function getParentCategory($parent_id){
if($parent_id === '0'){
return [];
}
$category = Category::find()->asArray()->where(['_id' => new \mongoId($parent_id)])->one();
$category = Category::find()->asArray()->where(['_id' => new \MongoId($parent_id)])->one();
if(isset($category['_id']) && !empty($category['_id']) ){
$currentUrlKey = $category['url_key'];
$currentName = $category['name'];
Expand Down

0 comments on commit 9088d4a

Please sign in to comment.