Authored by 郝肖肖

品牌集合 单个不显示

@@ -186,7 +186,7 @@ class FavoriteModel @@ -186,7 +186,7 @@ class FavoriteModel
186 $brands[$brandkey]['brandOrShopType'] = empty($brandval['brandOrShopType']) ? '' : $brandval['brandOrShopType']; 186 $brands[$brandkey]['brandOrShopType'] = empty($brandval['brandOrShopType']) ? '' : $brandval['brandOrShopType'];
187 $brands[$brandkey]['shop_id'] = empty($brandval['shop_id']) ? '' : $brandval['shop_id']; 187 $brands[$brandkey]['shop_id'] = empty($brandval['shop_id']) ? '' : $brandval['shop_id'];
188 $brands[$brandkey]['img'] = Images::getImageUrl($brandval['brand_ico'], 100, 100); //品牌缩略图 188 $brands[$brandkey]['img'] = Images::getImageUrl($brandval['brand_ico'], 100, 100); //品牌缩略图
189 - $brands[$brandkey]['url'] = Helpers::url('', '', $brandval['brand_domain']); //品牌链接 189 + $brands[$brandkey]['url'] = Helpers::url('', array('shopId' => $brands[$brandkey]['shop_id']), $brandval['brand_domain']); //品牌链接
190 $brands[$brandkey]['name'] = $brandval['brand_name']; //品牌名 190 $brands[$brandkey]['name'] = $brandval['brand_name']; //品牌名
191 $brands[$brandkey]['naCount'] = $brandval['new_product_num']; //新品到着数量 191 $brands[$brandkey]['naCount'] = $brandval['new_product_num']; //新品到着数量
192 $brands[$brandkey]['colCount'] = $brandval['brand_favorite_num']; //收藏人气 192 $brands[$brandkey]['colCount'] = $brandval['brand_favorite_num']; //收藏人气
@@ -456,7 +456,10 @@ class ShopModel @@ -456,7 +456,10 @@ class ShopModel
456 { 456 {
457 $result = array(); 457 $result = array();
458 $brand = isset($parameters['brand']) ? $parameters['brand'] : ''; 458 $brand = isset($parameters['brand']) ? $parameters['brand'] : '';
459 - 459 + if (count($data['resource_data']) <= 1) {
  460 + return $result;
  461 + }
  462 +
460 foreach ($data['resource_data'] as $resource) { 463 foreach ($data['resource_data'] as $resource) {
461 $result[] = array( 464 $result[] = array(
462 'url' => Helpers::url( 465 'url' => Helpers::url(