Authored by hf

do modify search api to new test

... ... @@ -86,7 +86,7 @@ class ListModel
}
// 获取品牌banner的数据, 有缓存1小时
$bannerData = BrandData::getBrandBanner($id);
$bannerData = BrandData::getBrandBanner($id);
if (isset($bannerData['data']['banner'])) {
$result['brandHome']['banner'] = Helpers::getImageUrl($bannerData['data']['banner'], 640, 75);
}
... ... @@ -124,11 +124,11 @@ class ListModel
$result = ListProcess::getListData($listData['data']);
if (!empty($listData['data']['brand'])) {
$result['brandWay'] = array(
'url' => 'http://'. $listData['data']['brand_domain'] . SUB_DOMAIN,
'thumb' => Helpers::getImageUrl($listData['data']['brand_ico'], 75, 40),
'name' => $listData['data']['brand_name']
'url' => 'http://'. $listData['data']['brand']['brand_domain'] . SUB_DOMAIN,
'thumb' => Helpers::getImageUrl($listData['data']['brand']['brand_ico'], 75, 40),
'name' => $listData['data']['brand']['brand_name']
);
$title = $listData['data']['brand_name'];
$title = $listData['data']['brand']['brand_name'];
}
}
... ...