...
|
...
|
@@ -241,10 +241,13 @@ class SearchModel |
|
|
if (!empty($shopsByBrands['data']) && is_array($shopsByBrands['data'])) {
|
|
|
//多品店 店铺入口
|
|
|
foreach ($shopsByBrands['data'] as $val) {
|
|
|
if (isset($val['brand_id'])) {
|
|
|
$shopSort = SearchData::getClassesData(array('brand' => $val['brand_id']));
|
|
|
if (isset($shopSort['code']) && $shopSort['code'] == 200) {
|
|
|
$data['shopData'][] = array('shop' => $val, 'shopSort' => $shopSort['data']['sort']);
|
|
|
}
|
|
|
$data['shopData'][] = array(
|
|
|
'shop' => $val,
|
|
|
'shopSort' => empty($shopSort['data']['sort']) ? array() : $shopSort['data']['sort']
|
|
|
);
|
|
|
}
|
|
|
} else {
|
|
|
//品牌入口
|
...
|
...
|
|