...
|
...
|
@@ -64,7 +64,9 @@ class BrandModel |
|
|
if (!empty($brand['brandTop'][0]['data']['list'])) {
|
|
|
$build = array();
|
|
|
foreach ($brand['brandTop'][0]['data']['list'] as $value) {
|
|
|
$build['url'] = Helpers::getFilterUrl($value['url']);
|
|
|
if (isset($value['url'])) {
|
|
|
$build['url'] = Helpers::getFilterUrl($value['url']);
|
|
|
}
|
|
|
$build['img'] = Helpers::getImageUrl($value['src'], 144, 144);
|
|
|
$build['name'] = $value['name'];
|
|
|
$result['hotBrand']['list'][] = $build;
|
...
|
...
|
@@ -74,7 +76,9 @@ class BrandModel |
|
|
elseif (!empty($brand['brandTop'][0]['data'])) {
|
|
|
$build = array();
|
|
|
foreach ($brand['brandTop'][0]['data'] as $value) {
|
|
|
$build['url'] = Helpers::getFilterUrl($value['url']);
|
|
|
if (isset($value['url'])) {
|
|
|
$build['url'] = Helpers::getFilterUrl($value['url']);
|
|
|
}
|
|
|
$build['img'] = Helpers::getImageUrl($value['src'], 640, 310);
|
|
|
$build['title'] = $value['title'];
|
|
|
$result['bannerTop']['list'][] = $build;
|
...
|
...
|
@@ -85,7 +89,9 @@ class BrandModel |
|
|
if (!empty($brand['brandTop'][1]['data']['list'])) {
|
|
|
$build = array();
|
|
|
foreach ($brand['brandTop'][1]['data']['list'] as $value) {
|
|
|
$build['url'] = Helpers::getFilterUrl($value['url']);
|
|
|
if (isset($value['url'])) {
|
|
|
$build['url'] = Helpers::getFilterUrl($value['url']);
|
|
|
}
|
|
|
$build['img'] = Helpers::getImageUrl($value['src'], 144, 144);
|
|
|
$build['name'] = $value['name'];
|
|
|
$result['hotBrand']['list'][] = $build;
|
...
|
...
|
|