Authored by 周少峰

app shopid first

@@ -125,6 +125,12 @@ class IndexController extends AbstractAction @@ -125,6 +125,12 @@ class IndexController extends AbstractAction
125 */ 125 */
126 public function brandAction() 126 public function brandAction()
127 { 127 {
  128 + //如果是app,可直接获取shopId
  129 + $appShopId = $this->get('shop_id');
  130 + if (!empty($appShopId)) {
  131 + $this->shop($appShopId);
  132 + exit;
  133 + }
128 /* 品牌域名参数 @see Bootstrap.php */ 134 /* 品牌域名参数 @see Bootstrap.php */
129 $domain = $this->param('named'); 135 $domain = $this->param('named');
130 if (empty($domain)) { 136 if (empty($domain)) {
@@ -134,12 +140,6 @@ class IndexController extends AbstractAction @@ -134,12 +140,6 @@ class IndexController extends AbstractAction
134 $uid = $this->getUid(); 140 $uid = $this->getUid();
135 // 存标题信息 141 // 存标题信息
136 $title = ''; 142 $title = '';
137 - //TODO 如果是app,可直接获取shopId  
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