...
|
...
|
@@ -283,22 +283,17 @@ class IndexController extends AbstractAction |
|
|
$orderInfo = json_decode($cookieData, true);
|
|
|
$cartType = $orderInfo['cartType'];
|
|
|
}
|
|
|
$cartKey = 'commonCart';
|
|
|
if ($cartType === 'advance') {
|
|
|
$cartKey = 'preSellCart';
|
|
|
}
|
|
|
|
|
|
$shoppingKey = Helpers::getShoppingKeyByCookie();
|
|
|
$uid = $this->getUid(true);
|
|
|
$cartGoods = CartModel::getCartData($uid, $shoppingKey);
|
|
|
if (isset($cartGoods['isEmptyCart']) || empty($cartGoods[$cartKey])) {
|
|
|
$this->go(Helpers::url('/cart/index/index'));
|
|
|
$order = CartModel::cartPay($uid, $cartType, $orderInfo);
|
|
|
if (isset($order['cartUrl'])) {
|
|
|
$this->go($order['cartUrl']);
|
|
|
}
|
|
|
|
|
|
$data = array(
|
|
|
'orderEnsurePage' => true,
|
|
|
'isOrdinaryCart' => ($cartType !== 'advance'),
|
|
|
'orderEnsure' => CartModel::cartPay($uid, $cartType, $orderInfo)
|
|
|
'orderEnsure' => $order
|
|
|
);
|
|
|
|
|
|
$this->_view->display('order-ensure', $data);
|
...
|
...
|
|