Authored by 周少峰

shop data dynamic

... ... @@ -127,7 +127,8 @@ class IndexController extends AbstractAction
{
/* 品牌域名参数 @see Bootstrap.php */
$domain = $this->param('named');
$domain = 'andybrier';
// $domain = 'andybrier';
echo $domain; exit;
if (empty($domain)) {
$this->go(SITE_MAIN);
}
... ... @@ -143,8 +144,8 @@ class IndexController extends AbstractAction
$brandLogo = Product\ListModel::getBrandLogoByDomain($domain, $title);
//TODO 无店铺:0--->品牌页 无单品店有多品店:1--->搜索页 有单品店:2--->店铺页面
//TODO 通过品牌域名获取店铺shopId 先固定shopId = 672
$brandLogo['shopId'] = 672;
$brandLogo['type'] = 2;
// $brandLogo['shopId'] = 672;
// $brandLogo['type'] = 2;
if ($brandLogo['type'] == 2 && !empty($brandLogo['shopId'])) {
$this->shop($brandLogo['shopId'], $uid);
exit;
... ...