Authored by 周少峰

app shopid

@@ -127,7 +127,6 @@ class IndexController extends AbstractAction @@ -127,7 +127,6 @@ class IndexController extends AbstractAction
127 { 127 {
128 /* 品牌域名参数 @see Bootstrap.php */ 128 /* 品牌域名参数 @see Bootstrap.php */
129 $domain = $this->param('named'); 129 $domain = $this->param('named');
130 -// $domain = 'andybrier';  
131 if (empty($domain)) { 130 if (empty($domain)) {
132 $this->go(SITE_MAIN); 131 $this->go(SITE_MAIN);
133 } 132 }
@@ -136,10 +135,11 @@ class IndexController extends AbstractAction @@ -136,10 +135,11 @@ class IndexController extends AbstractAction
136 // 存标题信息 135 // 存标题信息
137 $title = ''; 136 $title = '';
138 //TODO 如果是app,可直接获取shopId 137 //TODO 如果是app,可直接获取shopId
139 -// $appShopId = $this->get('shop_id');  
140 -// if ($this->isApp() && !empty($appShopId)) {  
141 -// $this->shop($appShopId);  
142 -// } 138 + $appShopId = $this->get('shop_id');
  139 + if ($this->isApp() && !empty($appShopId)) {
  140 + $this->shop($appShopId);
  141 + exit;
  142 + }
143 $brandLogo = Product\ListModel::getBrandLogoByDomain($domain, $title); 143 $brandLogo = Product\ListModel::getBrandLogoByDomain($domain, $title);
144 //TODO 无店铺:0--->品牌页 无单品店有多品店:1--->搜索页 有单品店:2--->店铺页面 144 //TODO 无店铺:0--->品牌页 无单品店有多品店:1--->搜索页 有单品店:2--->店铺页面
145 //TODO 通过品牌域名获取店铺shopId 先固定shopId = 672 145 //TODO 通过品牌域名获取店铺shopId 先固定shopId = 672