Authored by Rock Zhang

显示加价购和赠品

@@ -599,7 +599,7 @@ class CartModel @@ -599,7 +599,7 @@ class CartModel
599 $result['goods'][] = $oneGoods; 599 $result['goods'][] = $oneGoods;
600 } 600 }
601 // 赠品 601 // 赠品
602 - count($data['gift_list']) && $result['freebieOrAdvanceBuy'] = true; 602 + (count($data['gift_list']) || count($data['price_gift'])) && $result['freebieOrAdvanceBuy'] = true;
603 $result['freebie'] = $data['gift_list']; 603 $result['freebie'] = $data['gift_list'];
604 // 加价购 604 // 加价购
605 $result['advanceBuy'] = $data['price_gift']; 605 $result['advanceBuy'] = $data['price_gift'];