Authored by 郝肖肖

通过shopid判断是基础模板还是经典模板

... ... @@ -695,7 +695,15 @@ class ShopModel
public static function getIntro($shopId, $uid)
{
$data = array('brandName' => '', 'brandCont' => '', 'domain'=> '', 'logo'=> '', 'is_favorite'=> false, 'multBrandShopType' => 0);
$data = array(
'brandName' => '',
'brandCont' => '',
'domain'=> '',
'logo'=> '',
'is_favorite'=> false,
'multBrandShopType' => 0,
'shop_template_type' => 0
);
$intro = ShopData::getIntro($shopId, $uid);
... ... @@ -706,6 +714,7 @@ class ShopModel
'domain'=> $intro['data']['shop_domain'],
'logo'=> $intro['data']['shop_logo'],
'isFavorite'=> ($intro['data']['is_favorite'] === 'Y'),
'shopTemplateType'=> intval($intro['data']['shop_template_type']),
'multBrandShopType'=> intval($intro['data']['mult_brand_shop_type'])
);
}
... ...
... ... @@ -41,9 +41,9 @@ class IndexController extends WebAction
$this->go('http://search.yohobuy.com/?query=' . $domain);
} else {
$shopIntro = ShopModel::getIntro($shopId, $uid);
if (!empty($shopIntro['multBrandShopType']) && $shopIntro['multBrandShopType'] === 1) {
if (!empty($shopIntro['shopTemplateType']) && $shopIntro['shopTemplateType'] === 1) {
//基础模板多个品牌
$result['shopTemplateType'] = $shopIntro['multBrandShopType'];
$result['shopTemplateType'] = $shopIntro['shopTemplateType'];
$result['shopId'] = $shopIntro['shopId'];
break;
}
... ...