去除商品详情页中对应颜色没有尺码的商品
Code Review By Rock Zhang
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -195,7 +195,7 @@ class DetailModel | @@ -195,7 +195,7 @@ class DetailModel | ||
195 | 195 | ||
196 | // 商品的尺码列表 | 196 | // 商品的尺码列表 |
197 | $colorStorageGroup[ $value['productSkc'] ] = array(); | 197 | $colorStorageGroup[ $value['productSkc'] ] = array(); |
198 | - if (isset($value['goodsSizeBoList'])) { | 198 | + if (isset($value['goodsSizeBoList']) && !empty($value['goodsSizeBoList'])) { |
199 | $sizeName = ''; | 199 | $sizeName = ''; |
200 | foreach ($value['goodsSizeBoList'] as $size) { | 200 | foreach ($value['goodsSizeBoList'] as $size) { |
201 | $sizeList[ $value['productSkc'] ][] = array( | 201 | $sizeList[ $value['productSkc'] ][] = array( |
-
Please register or login to post a comment