Authored by hf

fixes bug to search page cache key erros

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