Authored by hf

code review by fei.hong: do merge yang.yang and shaofeng.zhou fixes bugs codes

... ... @@ -502,7 +502,7 @@ lazyLoad($('#details-html img'));
}
if (hasOnlyOneSize) {
$sizes.find('li').click();
$sizes.eq(0).find('li').click();
}
}());
... ...
... ... @@ -31,7 +31,10 @@ class CommonController extends WebAction
// 首页资源品牌,采用内存存储
$key = WebCacheConfig::KEY_WEB_INDEX_BRANDS_LIST_DATA . '_' . $type;
// array('logoBrand'=>'','moreBrand'=>'')
$data = Cache::get($key);
$data = Cache::get($key,'master');
if(empty($data)) {//从slave取数据
$data = Cache::get($key, 'slave');
}
} while (false);
... ...
... ... @@ -170,7 +170,7 @@ class ItemModel
}
}
//分享相关
$goodsInfo['weixinUrl'] = Helpers::Url($_SERVER['REQUEST_URI'], array(),'item');
$goodsInfo['weixinUrl'] = Helpers::url($_SERVER['REQUEST_URI'], array(),'item');
$goodsInfo['sharedTitle'] = $goodsInfo['name'];
$goodsInfo['shareImg'] = $goodsInfo['img'];
$goodsInfo['shareDesc'] = $baseInfo['phrase'];
... ...