修复男女首页热门品牌gender参数添加后对创意生活影响的bug
Showing
1 changed file
with
2 additions
and
1 deletions
@@ -205,7 +205,8 @@ class FloorProcess | @@ -205,7 +205,8 @@ class FloorProcess | ||
205 | unset($data['title']); | 205 | unset($data['title']); |
206 | foreach ($data['list'] as &$one) { | 206 | foreach ($data['list'] as &$one) { |
207 | if (isset($one['url'])) { | 207 | if (isset($one['url'])) { |
208 | - $one['url'] = Helpers::getFilterUrl($one['url']).'?gender='.self::$channel[$type]; | 208 | + $one['url'] = Helpers::getFilterUrl($one['url']); |
209 | + isset(self::$channel[$type]) && $one['url'] .= '?gender='.self::$channel[$type]; | ||
209 | } | 210 | } |
210 | $one['img'] = Helpers::getImageUrl($one['src'], 158, 174); | 211 | $one['img'] = Helpers::getImageUrl($one['src'], 158, 174); |
211 | unset($one['src']); | 212 | unset($one['src']); |
-
Please register or login to post a comment