|
@@ -193,7 +193,6 @@ class searchControl extends mobileHomeControl
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- $blocks = [];
|
|
|
foreach ($goods_list as $goods) {
|
|
|
$goods_id = intval($goods['goods_id']);
|
|
|
$goods_ids[] = $goods_id;
|
|
@@ -202,9 +201,8 @@ class searchControl extends mobileHomeControl
|
|
|
$helper = new goods_helper();
|
|
|
$ret = $helper->summary($goods_list,$related_goods);
|
|
|
|
|
|
- $block = special_formater::format_ugc_goods($goods_ids,"",$ret['sort_summary']);
|
|
|
- $blocks[] = $block;
|
|
|
-
|
|
|
+ $blocks = special_formater::format_ugc_goods($goods_ids,"",$ret['sort_summary']);
|
|
|
+
|
|
|
return self::outsuccess(array('special_list' => $blocks,
|
|
|
'summary' => $ret['summary'],
|
|
|
'groupbuy' => $ret['groupbuy'],
|