|
@@ -436,6 +436,7 @@ class CartModel |
|
@@ -436,6 +436,7 @@ class CartModel |
436
|
$onePay['id'] = $pay['payment_id'];
|
436
|
$onePay['id'] = $pay['payment_id'];
|
437
|
$onePay['paymentType'] = $pay['payment_type'];
|
437
|
$onePay['paymentType'] = $pay['payment_type'];
|
438
|
$onePay['name'] = $pay['payment_type_name'];
|
438
|
$onePay['name'] = $pay['payment_type_name'];
|
|
|
439
|
+ $onePay['isSupport'] = $pay['is_support'] === 'Y';
|
439
|
// $onePay['default'] = ($pay['default'] === 'Y');
|
440
|
// $onePay['default'] = ($pay['default'] === 'Y');
|
440
|
if ($onePay['paymentType'] == 1) {
|
441
|
if ($onePay['paymentType'] == 1) {
|
441
|
$onePay['recommend'] = true;
|
442
|
$onePay['recommend'] = true;
|
|
@@ -453,24 +454,6 @@ class CartModel |
|
@@ -453,24 +454,6 @@ class CartModel |
453
|
$result['cartPayData'] = isset($orderCompute['promotion_formula_list']) ? $orderCompute['promotion_formula_list'] : $payReturn['shopping_cart_data']['promotion_formula_list'];
|
454
|
$result['cartPayData'] = isset($orderCompute['promotion_formula_list']) ? $orderCompute['promotion_formula_list'] : $payReturn['shopping_cart_data']['promotion_formula_list'];
|
454
|
$price = isset($orderCompute['last_order_amount']) ? $orderCompute['last_order_amount'] : $payReturn['shopping_cart_data']['last_order_amount'];
|
455
|
$price = isset($orderCompute['last_order_amount']) ? $orderCompute['last_order_amount'] : $payReturn['shopping_cart_data']['last_order_amount'];
|
455
|
$result['price'] = Helpers::transPrice($price);
|
456
|
$result['price'] = Helpers::transPrice($price);
|
456
|
-
|
|
|
457
|
- /*$sumPrice = isset($orderCompute['order_amount']) ? $orderCompute['order_amount'] : $payReturn['shopping_cart_data']['order_amount'];
|
|
|
458
|
-
|
|
|
459
|
- $freight = '¥0';
|
|
|
460
|
- if (isset($orderCompute['promotion_formula_list'][1]['promotion_amount'])) {
|
|
|
461
|
- $freight = $orderCompute['promotion_formula_list'][1]['promotion_amount'];
|
|
|
462
|
- } elseif(isset($payReturn['shopping_cart_data']['promotion_formula_list'][1]['promotion_amount'])) {
|
|
|
463
|
- $freight = $payReturn['shopping_cart_data']['promotion_formula_list'][1]['promotion_amount'];
|
|
|
464
|
- }
|
|
|
465
|
-
|
|
|
466
|
- $couponPrice = isset($orderCompute['coupon_amount']) ? $orderCompute['coupon_amount'] : false;
|
|
|
467
|
- $salePrice = isset($orderCompute['discount_amount']) ? $orderCompute['discount_amount'] : $payReturn['shopping_cart_data']['discount_amount'];
|
|
|
468
|
- $price = isset($orderCompute['last_order_amount']) ? $orderCompute['last_order_amount'] : $payReturn['shopping_cart_data']['last_order_amount'];
|
|
|
469
|
- $result['sumPrice'] = Helpers::transPrice($sumPrice);
|
|
|
470
|
- $result['salePrice'] = Helpers::transPrice($salePrice);
|
|
|
471
|
- $result['price'] = Helpers::transPrice($price);
|
|
|
472
|
- $result['freight'] = $freight;
|
|
|
473
|
- $result['couponPrice'] = $couponPrice;*/
|
|
|
474
|
}
|
457
|
}
|
475
|
|
458
|
|
476
|
// 发票有关数据
|
459
|
// 发票有关数据
|