...
|
...
|
@@ -277,6 +277,12 @@ class IndexController extends AbstractAction |
|
|
|
|
|
// 购物车商品为空跳转到购物车页面
|
|
|
$cartType = $this->get('cartType', 'ordinary');
|
|
|
$cookieData = $this->getCookie('order-info', null);
|
|
|
$orderInfo = array();
|
|
|
if (!empty($cookieData)) {
|
|
|
$orderInfo = json_decode($cookieData, true);
|
|
|
$cartType = $orderInfo['cartType'];
|
|
|
}
|
|
|
$cartKey = 'commonCart';
|
|
|
if ($cartType === 'advance') {
|
|
|
$cartKey = 'preSellCart';
|
...
|
...
|
@@ -289,12 +295,10 @@ class IndexController extends AbstractAction |
|
|
$this->go(Helpers::url('/cart/index/index'));
|
|
|
}
|
|
|
|
|
|
$cookieData = $this->getCookie('order-info', null);
|
|
|
$uid = $this->getUid(true);
|
|
|
$data = array(
|
|
|
'orderEnsurePage' => true,
|
|
|
'isOrdinaryCart' => ($cartType !== 'advance'),
|
|
|
'orderEnsure' => CartModel::cartPay($uid, $cartType, $cookieData)
|
|
|
'orderEnsure' => CartModel::cartPay($uid, $cartType, $orderInfo)
|
|
|
);
|
|
|
|
|
|
$this->_view->display('order-ensure', $data);
|
...
|
...
|
|