Authored by hf

fixes bug to search page cache key erros

@@ -158,7 +158,7 @@ class ListModel @@ -158,7 +158,7 @@ class ListModel
158 $result = false; 158 $result = false;
159 159
160 if (USE_CACHE) { 160 if (USE_CACHE) {
161 - $key = CacheConfig::KEY_ACTION_PRODUCT_BRAND_INFOS . strval($id); 161 + $key = CacheConfig::KEY_ACTION_PRODUCT_BRAND_LOGO . strval($id);
162 // 先尝试获取一级缓存(master), 有数据则直接返回. 162 // 先尝试获取一级缓存(master), 有数据则直接返回.
163 $result = Cache::get($key, 'master'); 163 $result = Cache::get($key, 'master');
164 if (!empty($result)) { 164 if (!empty($result)) {
@@ -120,13 +120,13 @@ class IndexController extends AbstractAction @@ -120,13 +120,13 @@ class IndexController extends AbstractAction
120 // 从搜索页过来的,显示搜索框, 和进入品牌引导信息 120 // 从搜索页过来的,显示搜索框, 和进入品牌引导信息
121 if ($from === 'search') { 121 if ($from === 'search') {
122 $data['goodList'] = array(); 122 $data['goodList'] = array();
123 - $data['goodList']['brandWay'] = Product\ListModel::getBrandLogoByIds($brandIds[0], $title); 123 + $data['goodList']['brandWay'] = \Product\ListModel::getBrandLogoByIds($brandIds[0], $title);
124 $data['goodList']['search']['default'] = $query; 124 $data['goodList']['search']['default'] = $query;
125 $data['goodList']['search']['url'] = Helpers::url('', null, 'search'); 125 $data['goodList']['search']['url'] = Helpers::url('', null, 'search');
126 } 126 }
127 // 品牌一览过来的展示品牌介绍和LOGO 127 // 品牌一览过来的展示品牌介绍和LOGO
128 else { 128 else {
129 - $data['brandHome'] = Product\ListModel::getBrandIntro($brandIds[0], $uid, $title); 129 + $data['brandHome'] = \Product\ListModel::getBrandIntro($brandIds[0], $uid, $title);
130 $data['goodList'] = array(); 130 $data['goodList'] = array();
131 } 131 }
132 $data['goodList'] += $condition; 132 $data['goodList'] += $condition;