...
|
...
|
@@ -319,7 +319,8 @@ class CartModel |
|
|
$result['addressId'] = isset($address['address_id']) ? $address['address_id'] : $payReturn['delivery_address']['address_id'];
|
|
|
$result['name'] = isset($address['consignee']) ? $address['consignee'] : $payReturn['delivery_address']['consignee'];
|
|
|
$result['phoneNum'] = isset($address['mobile']) ? $address['mobile'] : $payReturn['delivery_address']['mobile'];
|
|
|
$result['address'] = isset($address['address']) ? $address['address'] : $payReturn['delivery_address']['address'];
|
|
|
$result['area'] = isset($address['area']) ? $address['area'] : $payReturn['delivery_address']['area'];
|
|
|
$result['address'] = isset($address['address']) ? $address['address'] : $payReturn['delivery_address']['address'];
|
|
|
$result['isSupport'] = ($payReturn['delivery_address']['is_support'] === 'Y');
|
|
|
}
|
|
|
|
...
|
...
|
@@ -330,9 +331,11 @@ class CartModel |
|
|
$oneDeliv = array();
|
|
|
$oneDeliv['id'] = $val['delivery_way_id'];
|
|
|
$oneDeliv['name'] = $val['delivery_way_name'];
|
|
|
$oneDeliv['default'] = ($val['default'] === 'Y');
|
|
|
|
|
|
isset($orderInfo['deliveryId']) && $orderInfo['deliveryId'] === $oneDeliv['id'] && $oneDeliv['isSelected'] = true;
|
|
|
|
|
|
!isset($oneDeliv['isSelected']) && $oneDeliv['isSelected'] = ($val['default'] === 'Y');
|
|
|
|
|
|
$result['dispatchMode'][] = $oneDeliv;
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -390,7 +393,7 @@ class CartModel |
|
|
$sumPrice = isset($orderCompute['order_amount']) ? $orderCompute['order_amount'] : $payReturn['shopping_cart_data']['order_amount'];
|
|
|
$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'];
|
|
|
$freight = isset($orderCompute['promotion_formula_list']['promotion_amount']) ? $orderCompute['promotion_formula_list']['promotion_amount'] : $payReturn['shopping_cart_data']['promotion_formula_list']['promotion_amount'];
|
|
|
$freight = isset($orderCompute['promotion_formula_list']['promotion_amount']) ? $orderCompute['promotion_formula_list']['promotion_amount'] : $payReturn['shopping_cart_data']['promotion_formula_list'][1]['promotion_amount'];
|
|
|
$result['sumPrice'] = Helpers::transPrice($sumPrice);
|
|
|
$result['salePrice'] = Helpers::transPrice($salePrice);
|
|
|
$result['price'] = Helpers::transPrice($price);
|
...
|
...
|
@@ -411,7 +414,7 @@ class CartModel |
|
|
|
|
|
// 优惠券数据
|
|
|
$coupons = array('notUsed' => true);
|
|
|
!empty($orderCompute['coupon_amount']) && $coupons['notUsed'] = $orderInfo['couponName'];
|
|
|
!empty($orderCompute['coupon_amount']) && $coupons['value'] = $orderInfo['couponValue'];
|
|
|
$coupons += self::getCouponList($uid, 0, 1, true);
|
|
|
$result['coupon'] = $coupons;
|
|
|
}
|
...
|
...
|
|