Authored by Rock Zhang

修改加价购或者赠品详情的尺码与颜色的数据结构

@@ -570,6 +570,7 @@ class Helpers @@ -570,6 +570,7 @@ class Helpers
570 570
571 $oneGoods = array(); 571 $oneGoods = array();
572 foreach ($cartGoods as $key => $value) { 572 foreach ($cartGoods as $key => $value) {
  573 + $oneGoods = array();
573 $oneGoods['id'] = $value['product_sku']; 574 $oneGoods['id'] = $value['product_sku'];
574 $oneGoods['skn'] = $value['product_skn']; 575 $oneGoods['skn'] = $value['product_skn'];
575 $oneGoods['name'] = $value['product_name']; 576 $oneGoods['name'] = $value['product_name'];
@@ -662,9 +662,9 @@ class CartModel @@ -662,9 +662,9 @@ class CartModel
662 $colorNum += $one['storage_number']; 662 $colorNum += $one['storage_number'];
663 $sizeStorageStr .= $one['storage_number'] . '/'; 663 $sizeStorageStr .= $one['storage_number'] . '/';
664 664
665 - $sizeList[$val['color_id']][] = $oneSize; 665 + $sizeList[$val['product_skc']][] = $oneSize;
666 666
667 - $colorStorageGroup[$one['productSkc']][$val['sizeName']] = $val['storage_number']; 667 + $colorStorageGroup[$val['product_skc']][$one['size_name']] = $one['storage_number'];
668 } 668 }
669 669
670 // 颜色 670 // 颜色