...
|
...
|
@@ -31,8 +31,13 @@ class IndexController extends WebAction |
|
|
$type = intval(isset($result['type']) ? $result['type'] : '');
|
|
|
switch ($type) {
|
|
|
case 1:
|
|
|
//无单品店有多品店:1--->搜索页
|
|
|
$this->go('http://search.yohobuy.com/?query=' . $domain);
|
|
|
$shopId = $this->get('shopId', 0);
|
|
|
if (empty($shopId)) {
|
|
|
//无单品店有多品店:1--->搜索页
|
|
|
$this->go('http://search.yohobuy.com/?query=' . $domain);
|
|
|
} else {
|
|
|
$this->shopHome($shopId);
|
|
|
}
|
|
|
exit(0);
|
|
|
break;
|
|
|
case 2:
|
...
|
...
|
@@ -318,7 +323,8 @@ class IndexController extends WebAction |
|
|
),
|
|
|
'uid' => $uid,
|
|
|
'navBar' => $this->get('navBar', 0),
|
|
|
'brand' => $this->get('brand', 0)
|
|
|
'brand' => $this->get('brand', 0),
|
|
|
'shopId' => $shopId
|
|
|
);
|
|
|
|
|
|
$data = array_merge(
|
...
|
...
|
@@ -339,16 +345,11 @@ class IndexController extends WebAction |
|
|
{
|
|
|
//品牌域名,没有获取到品牌域名的跳转首页
|
|
|
$domain = $this->param('named');
|
|
|
|
|
|
//根据品牌域名获取品牌id(同时判断品牌域名是否有效),无效跳转首页
|
|
|
$result = BrandsModel::getBrandByDomain($domain);
|
|
|
|
|
|
if (isset($result['code']) && $result['code'] !== 200 || empty($result['shopId'])) {
|
|
|
if (empty($domain)) {
|
|
|
$this->go(SITE_MAIN);
|
|
|
}
|
|
|
|
|
|
$shopId = $result['shopId'];
|
|
|
|
|
|
$shopId = $this->get('shopId', 0);
|
|
|
//获取uid
|
|
|
$uid = $this->getUid();
|
|
|
|
...
|
...
|
@@ -365,6 +366,7 @@ class IndexController extends WebAction |
|
|
),
|
|
|
'uid' => $uid,
|
|
|
'navBar' => $this->get('navBar', 1),
|
|
|
'shopId' => $this->get('shopId', 0),
|
|
|
'brand' => $this->get('brand', 0)
|
|
|
);
|
|
|
|
...
|
...
|
|