...
|
...
|
@@ -424,6 +424,13 @@ class CartModel |
|
|
$oneGoods['price'] = Helpers::transPrice($single['sales_price']);
|
|
|
$oneGoods['count'] = $single['buy_number'];
|
|
|
|
|
|
//gift=>是否赠品,advanceBuy=>是否加价购;
|
|
|
if ($single['goods_type'] == 'gift' && !isset($single['isAdvanceBuy'])) {
|
|
|
$oneGoods['gift'] = true;
|
|
|
} elseif ($single['goods_type'] == 'price_gift') {
|
|
|
$oneGoods['advanceBuy'] = true;
|
|
|
}
|
|
|
|
|
|
$result['goods'][] = $oneGoods;
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -436,6 +443,7 @@ class CartModel |
|
|
$onePay['id'] = $pay['payment_id'];
|
|
|
$onePay['paymentType'] = $pay['payment_type'];
|
|
|
$onePay['name'] = $pay['payment_type_name'];
|
|
|
$onePay['isSupport'] = $pay['is_support'] === 'Y';
|
|
|
// $onePay['default'] = ($pay['default'] === 'Y');
|
|
|
if ($onePay['paymentType'] == 1) {
|
|
|
$onePay['recommend'] = true;
|
...
|
...
|
@@ -453,24 +461,6 @@ class CartModel |
|
|
$result['cartPayData'] = isset($orderCompute['promotion_formula_list']) ? $orderCompute['promotion_formula_list'] : $payReturn['shopping_cart_data']['promotion_formula_list'];
|
|
|
$price = isset($orderCompute['last_order_amount']) ? $orderCompute['last_order_amount'] : $payReturn['shopping_cart_data']['last_order_amount'];
|
|
|
$result['price'] = Helpers::transPrice($price);
|
|
|
|
|
|
/*$sumPrice = isset($orderCompute['order_amount']) ? $orderCompute['order_amount'] : $payReturn['shopping_cart_data']['order_amount'];
|
|
|
|
|
|
$freight = '¥0';
|
|
|
if (isset($orderCompute['promotion_formula_list'][1]['promotion_amount'])) {
|
|
|
$freight = $orderCompute['promotion_formula_list'][1]['promotion_amount'];
|
|
|
} elseif(isset($payReturn['shopping_cart_data']['promotion_formula_list'][1]['promotion_amount'])) {
|
|
|
$freight = $payReturn['shopping_cart_data']['promotion_formula_list'][1]['promotion_amount'];
|
|
|
}
|
|
|
|
|
|
$couponPrice = isset($orderCompute['coupon_amount']) ? $orderCompute['coupon_amount'] : false;
|
|
|
$salePrice = isset($orderCompute['discount_amount']) ? $orderCompute['discount_amount'] : $payReturn['shopping_cart_data']['discount_amount'];
|
|
|
$price = isset($orderCompute['last_order_amount']) ? $orderCompute['last_order_amount'] : $payReturn['shopping_cart_data']['last_order_amount'];
|
|
|
$result['sumPrice'] = Helpers::transPrice($sumPrice);
|
|
|
$result['salePrice'] = Helpers::transPrice($salePrice);
|
|
|
$result['price'] = Helpers::transPrice($price);
|
|
|
$result['freight'] = $freight;
|
|
|
$result['couponPrice'] = $couponPrice;*/
|
|
|
}
|
|
|
|
|
|
// 发票有关数据
|
...
|
...
|
@@ -498,7 +488,7 @@ class CartModel |
|
|
|
|
|
// 优惠券数据
|
|
|
$coupons = array();
|
|
|
!empty($orderCompute['coupon_amount']) && $coupons['value'] = $orderInfo['couponValue'];
|
|
|
!empty($orderCompute['coupon_amount']) && $coupons['couponName'] = $orderInfo['couponName'];
|
|
|
$coupons += self::getCouponList($uid, true);
|
|
|
$result['coupon'] = $coupons;
|
|
|
}
|
...
|
...
|
|