|
@@ -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, &$count = 0)
|
683
|
+ public static function formatAdvanceGoods($advanceGoods, $isGift = false, &$count = 0)
|
684
|
{
|
684
|
{
|
685
|
$arr = array();
|
685
|
$arr = array();
|
686
|
|
686
|
|
|
@@ -699,7 +699,7 @@ class Helpers |
|
@@ -699,7 +699,7 @@ class Helpers |
699
|
$oneGoods['name'] = $single['product_name'];
|
699
|
$oneGoods['name'] = $single['product_name'];
|
700
|
$oneGoods['thumb'] = !empty($single['goods_images']) ? Images::getImageUrl($single['goods_images'], 120, 160) : '';
|
700
|
$oneGoods['thumb'] = !empty($single['goods_images']) ? Images::getImageUrl($single['goods_images'], 120, 160) : '';
|
701
|
$oneGoods['price'] = self::transPrice($single['last_price']);
|
701
|
$oneGoods['price'] = self::transPrice($single['last_price']);
|
702
|
- $oneGoods['marketPrice'] = '0.00';
|
702
|
+ $oneGoods['marketPrice'] = $isGift ? '0.00' : self::transPrice($single['market_price']);
|
703
|
$oneGoods['count'] = $single['storage_number'];
|
703
|
$oneGoods['count'] = $single['storage_number'];
|
704
|
|
704
|
|
705
|
$gift['goods'][] = $oneGoods;
|
705
|
$gift['goods'][] = $oneGoods;
|