Authored by yangyang

save

... ... @@ -680,7 +680,7 @@ class Helpers
* @param int $count 计商品件数
* @return array $arr 处理之后的加价购商品数据
*/
public static function formatAdvanceGoods($advanceGoods, $isGift = false, &$count = 0)
public static function formatAdvanceGoods($advanceGoods, &$count = 0, $isGift = false)
{
$arr = array();
... ...
... ... @@ -849,7 +849,8 @@ class CartModel
if ($onlyGift) {
// 赠品
$result['freebie'] = Helpers::formatAdvanceGoods($data['gift_list'], true);
$count = 0;
$result['freebie'] = Helpers::formatAdvanceGoods($data['gift_list'], $count, true);
break;
}
if ($onlyAdvanceBuy) {
... ...