...
|
...
|
@@ -201,6 +201,7 @@ class ListModel |
|
|
*
|
|
|
* @param int $id 品牌ID
|
|
|
* @param string $title 品牌标题
|
|
|
* @modify sefon 2016-4-29 01:57:14 添加shopId / type
|
|
|
* @return array | false
|
|
|
*/
|
|
|
public static function getBrandLogoByDomain($domain, &$title)
|
...
|
...
|
@@ -218,6 +219,7 @@ class ListModel |
|
|
|
|
|
// 调用接口查询数据
|
|
|
$brandLogo = BrandData::getBrandLogoByDomain($domain);
|
|
|
// $brandLogo = BrandData::getShopInfoByBrandDomain($domain); // TODO 获取品牌店铺信息
|
|
|
// 处理返回的数据
|
|
|
if (isset($brandLogo['data'])) {
|
|
|
$result = array(
|
...
|
...
|
@@ -225,6 +227,8 @@ class ListModel |
|
|
'url' => Helpers::url('', null, $brandLogo['data']['brand_domain']),
|
|
|
'thumb' => Helpers::getImageUrl($brandLogo['data']['brand_ico'], 75, 40),
|
|
|
'name' => $brandLogo['data']['brand_name'],
|
|
|
// 'shopId' => $brandLogo['data']['shop_id'],//店铺id
|
|
|
// 'type' => $brandLogo['data']['type'],//TODO 无店铺:0--->品牌页 无单品店有多品店:1--->搜索页 有单品店:2--->店铺页面
|
|
|
);
|
|
|
$title = $result['name'];
|
|
|
}
|
...
|
...
|
|