Authored by 郝肖肖

1000+图片不存在,显示默认图片

@@ -215,7 +215,6 @@ class FloorProcess @@ -215,7 +215,6 @@ class FloorProcess
215 foreach ($data['list'] as &$one) { 215 foreach ($data['list'] as &$one) {
216 if (isset($one['url'])) { 216 if (isset($one['url'])) {
217 $one['url'] = Helpers::getFilterUrl($one['url']); 217 $one['url'] = Helpers::getFilterUrl($one['url']);
218 -// isset(self::$channel[$type]) && $one['url'] .= '?gender=' . self::$channel[$type];  
219 } 218 }
220 $one['img'] = Helpers::getImageUrl($one['src'], 158, 174); 219 $one['img'] = Helpers::getImageUrl($one['src'], 158, 174);
221 unset($one['src']); 220 unset($one['src']);
@@ -226,7 +225,7 @@ class FloorProcess @@ -226,7 +225,7 @@ class FloorProcess
226 'src' => 'http://cdn.yoho.cn/myohobuy/assets/img/more-brand.png', 225 'src' => 'http://cdn.yoho.cn/myohobuy/assets/img/more-brand.png',
227 'url' => '/brands?channel=' . $type, 226 'url' => '/brands?channel=' . $type,
228 ); 227 );
229 - if (isset($data['image'])) { 228 + if (!empty($data['image'])) {
230 $data['moreImg'] = array( 229 $data['moreImg'] = array(
231 'alt' => $data['image']['alt'], 230 'alt' => $data['image']['alt'],
232 'src' => Helpers::getImageUrl($data['image']['src'], 320, 172), 231 'src' => Helpers::getImageUrl($data['image']['src'], 320, 172),