...
|
...
|
@@ -125,6 +125,12 @@ class IndexController extends AbstractAction |
|
|
*/
|
|
|
public function brandAction()
|
|
|
{
|
|
|
//如果是app,可直接获取shopId
|
|
|
$appShopId = $this->get('shop_id');
|
|
|
if (!empty($appShopId)) {
|
|
|
$this->shop($appShopId);
|
|
|
exit;
|
|
|
}
|
|
|
/* 品牌域名参数 @see Bootstrap.php */
|
|
|
$domain = $this->param('named');
|
|
|
if (empty($domain)) {
|
...
|
...
|
@@ -134,12 +140,6 @@ class IndexController extends AbstractAction |
|
|
$uid = $this->getUid();
|
|
|
// 存标题信息
|
|
|
$title = '';
|
|
|
//TODO 如果是app,可直接获取shopId
|
|
|
$appShopId = $this->get('shop_id');
|
|
|
if ($this->isApp() && !empty($appShopId)) {
|
|
|
$this->shop($appShopId);
|
|
|
exit;
|
|
|
}
|
|
|
$brandLogo = Product\ListModel::getBrandLogoByDomain($domain, $title);
|
|
|
//TODO 无店铺:0--->品牌页 无单品店有多品店:1--->搜索页 有单品店:2--->店铺页面
|
|
|
//TODO 通过品牌域名获取店铺shopId 先固定shopId = 672
|
...
|
...
|
|