Commit 474f1602 authored by zhz's avatar zhz

store

parent a144c625
...@@ -187,6 +187,7 @@ class FavoritesStoreModel extends \DAO\AbstractModel { ...@@ -187,6 +187,7 @@ class FavoritesStoreModel extends \DAO\AbstractModel {
* @throws \Our\Exception * @throws \Our\Exception
*/ */
public function updateStoreCollecitonsCache($storeIds, $memberId, $type = 1) { public function updateStoreCollecitonsCache($storeIds, $memberId, $type = 1) {
var_dump($storeIds);
if(!$storeIds || !is_array($storeIds)) { if(!$storeIds || !is_array($storeIds)) {
return true; return true;
} }
...@@ -206,6 +207,8 @@ class FavoritesStoreModel extends \DAO\AbstractModel { ...@@ -206,6 +207,8 @@ class FavoritesStoreModel extends \DAO\AbstractModel {
} }
\Our\RedisHelper::delCachedFunction(\Redis\Db6\FavoritesStoreRedisModel::getInstance(),array(&$this, 'getFavoritesStores'),array(),array($memberId)); \Our\RedisHelper::delCachedFunction(\Redis\Db6\FavoritesStoreRedisModel::getInstance(),array(&$this, 'getFavoritesStores'),array(),array($memberId));
//更新个人中心首页数量 //更新个人中心首页数量
var_dump($type);
var_dump(count($storeIds));
\DAO\MemberModel::getInstance()->_changeNum(\Our\NameConst::storeCollection,$memberId,$type == 1 ? -(count($storeIds)) : count($storeIds)); \DAO\MemberModel::getInstance()->_changeNum(\Our\NameConst::storeCollection,$memberId,$type == 1 ? -(count($storeIds)) : count($storeIds));
return true; return true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment