Showing
2 changed files
with
3 additions
and
2 deletions
@@ -680,7 +680,7 @@ class Helpers | @@ -680,7 +680,7 @@ class Helpers | ||
680 | * @param int $count 计商品件数 | 680 | * @param int $count 计商品件数 |
681 | * @return array $arr 处理之后的加价购商品数据 | 681 | * @return array $arr 处理之后的加价购商品数据 |
682 | */ | 682 | */ |
683 | - public static function formatAdvanceGoods($advanceGoods, $isGift = false, &$count = 0) | 683 | + public static function formatAdvanceGoods($advanceGoods, &$count = 0, $isGift = false) |
684 | { | 684 | { |
685 | $arr = array(); | 685 | $arr = array(); |
686 | 686 |
@@ -849,7 +849,8 @@ class CartModel | @@ -849,7 +849,8 @@ class CartModel | ||
849 | 849 | ||
850 | if ($onlyGift) { | 850 | if ($onlyGift) { |
851 | // 赠品 | 851 | // 赠品 |
852 | - $result['freebie'] = Helpers::formatAdvanceGoods($data['gift_list'], true); | 852 | + $count = 0; |
853 | + $result['freebie'] = Helpers::formatAdvanceGoods($data['gift_list'], $count, true); | ||
853 | break; | 854 | break; |
854 | } | 855 | } |
855 | if ($onlyAdvanceBuy) { | 856 | if ($onlyAdvanceBuy) { |
-
Please register or login to post a comment