Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fancyecommerce committed Dec 2, 2020
1 parent c732f71 commit 3bd34f5
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
Expand Up @@ -46,7 +46,7 @@ public function getLastData()
],
'asArray' => true,
];
$data = Yii::$service->product->favorite->list($filter);
$data = Yii::$service->product->favorite->lists($filter);
$coll = $data['coll'];
$count = $data['count'];
$pageToolBar = $this->getProductPage($count);
Expand Down
Expand Up @@ -46,7 +46,7 @@ public function getLastData()
],
'asArray' => true,
];
$data = Yii::$service->product->favorite->list($filter);
$data = Yii::$service->product->favorite->lists($filter);
$coll = $data['coll'];
$count = $data['count'];
$pageToolBar = $this->getProductPage($count);
Expand Down
Expand Up @@ -46,7 +46,7 @@ public function actionIndex()
],
'asArray' => true,
];
$data = Yii::$service->product->favorite->list($filter);
$data = Yii::$service->product->favorite->lists($filter);
$coll = $data['coll'];
$count = $data['count'];
$product_arr = $this->getProductInfo($coll);
Expand Down
4 changes: 2 additions & 2 deletions services/product/Favorite.php
Expand Up @@ -125,9 +125,9 @@ public function updateUserFavoriteCount($user_id = '')
* 'asArray' => true,
* ]
*/
public function list($filter)
public function lists($filter)
{
return $this->_favorite->list($filter);
return $this->_favorite->lists($filter);
}


Expand Down
4 changes: 2 additions & 2 deletions services/product/Review.php
Expand Up @@ -159,9 +159,9 @@ public function updateReview($review_data)
/**
* 查看review 的列表
*/
public function list($filter)
public function lists($filter)
{
return $this->_review->list($filter);
return $this->_review->lists($filter);
}

public function getByReviewId($_id)
Expand Down
4 changes: 2 additions & 2 deletions services/product/favorite/FavoriteMongodb.php
Expand Up @@ -156,7 +156,7 @@ protected function updateUserFavoriteCount($user_id = '')
* 'asArray' => true,
* ]
*/
public function list($filter)
public function lists($filter)
{
$query = $this->_favoriteModel->find();
$query = Yii::$service->helper->ar->getCollByFilter($query, $filter);
Expand All @@ -169,7 +169,7 @@ public function list($filter)

public function coll($filter)
{
return $this->list($filter);
return $this->lists($filter);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions services/product/favorite/FavoriteMysqldb.php
Expand Up @@ -156,7 +156,7 @@ protected function updateUserFavoriteCount($user_id = '')
* 'asArray' => true,
* ]
*/
public function list($filter)
public function lists($filter)
{
$query = $this->_favoriteModel->find();
$query = Yii::$service->helper->ar->getCollByFilter($query, $filter);
Expand All @@ -169,7 +169,7 @@ public function list($filter)

public function coll($filter)
{
return $this->list($filter);
return $this->lists($filter);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions services/product/review/ReviewMongodb.php
Expand Up @@ -202,7 +202,7 @@ public function updateReview($review_data)
* ]
* 查看review 的列表
*/
public function list($filter)
public function lists($filter)
{
$query = $this->_reviewModel->find();
$query = Yii::$service->helper->ar->getCollByFilter($query, $filter);
Expand Down Expand Up @@ -257,7 +257,7 @@ public function getByPrimaryKey($primaryKey)
*/
public function coll($filter = '')
{
return $this->list($filter);
return $this->lists($filter);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions services/product/review/ReviewMysqldb.php
Expand Up @@ -218,7 +218,7 @@ public function updateReview($review_data)
* ]
* 查看review 的列表
*/
public function list($filter)
public function lists($filter)
{
$query = $this->_reviewModel->find();
$query = Yii::$service->helper->ar->getCollByFilter($query, $filter);
Expand Down Expand Up @@ -273,7 +273,7 @@ public function getByPrimaryKey($primaryKey)
*/
public function coll($filter = '')
{
return $this->list($filter);
return $this->lists($filter);
}

/**
Expand Down

0 comments on commit 3bd34f5

Please sign in to comment.