Authored by Rock Zhang

区别一个大推荐和四个小图推荐的数据中大图是多张图与一张图

@@ -298,7 +298,12 @@ class FloorProcess @@ -298,7 +298,12 @@ class FloorProcess
298 $one['img'] = Helpers::getImageUrl($one['src'], 640, 403); 298 $one['img'] = Helpers::getImageUrl($one['src'], 640, 403);
299 unset($one['src']); 299 unset($one['src']);
300 } 300 }
  301 +
  302 + // 区别多张图与一张图
  303 + if (count($data['big_image']) > 1) {
301 $result['big_image']['list'] = $data['big_image']; 304 $result['big_image']['list'] = $data['big_image'];
  305 + unset($data['big_image']);
  306 + }
302 307
303 foreach ($data['list'] as $kk => &$one) { 308 foreach ($data['list'] as $kk => &$one) {
304 if ($kk == 0) { 309 if ($kk == 0) {
@@ -318,8 +323,6 @@ class FloorProcess @@ -318,8 +323,6 @@ class FloorProcess
318 $data['title']['more_url'] = Helpers::getFilterUrl($data['title']['more_url']); 323 $data['title']['more_url'] = Helpers::getFilterUrl($data['title']['more_url']);
319 } 324 }
320 325
321 - unset($data['big_image']);  
322 -  
323 $result['goodsCategory'] = $data; 326 $result['goodsCategory'] = $data;
324 327
325 return $result; 328 return $result;