...
|
...
|
@@ -575,22 +575,39 @@ class IndexController extends AbstractAction |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 电子票添加
|
|
|
* 校验电子票
|
|
|
*
|
|
|
*/
|
|
|
public function addTickets()
|
|
|
public function checkTicketsAction()
|
|
|
{
|
|
|
if (!$this->isAjax()) {
|
|
|
exit;
|
|
|
// $uid = $this->getUid();
|
|
|
// if (!$this->isAjax() || !$uid) {
|
|
|
// exit;
|
|
|
// }
|
|
|
// $productSku = $this->post('$productSku');
|
|
|
// $buyNumber = $this->post('$buyNumber');
|
|
|
// $data = CartData::checkTickets($uid, $productSku, $buyNumber);
|
|
|
$data = array(
|
|
|
'code' => 200,
|
|
|
'data' => array()
|
|
|
);
|
|
|
$this->echoJson($data);
|
|
|
}
|
|
|
|
|
|
//电子票确认
|
|
|
public function ticketsConfirmAction()
|
|
|
{
|
|
|
// 审判跳转登录页
|
|
|
$this->auditJumpLogin();
|
|
|
$uid = $this->getUid();
|
|
|
if (!$uid) {
|
|
|
exit;
|
|
|
}
|
|
|
$productSku = $this->post('$productSku');
|
|
|
$buyNumber = $this->post('$buyNumber');
|
|
|
$this->echoJson(CartData::addTickets($uid, $productSku, $buyNumber));
|
|
|
$productSku = $this->post('productSku');
|
|
|
$buyNumber = $this->post('buyNumber');
|
|
|
if (empty($productSku) || empty($buyNumber)) {
|
|
|
$this->error();
|
|
|
}
|
|
|
|
|
|
$tickets = CartModel::getTickets($uid, $productSku, $buyNumber);
|
|
|
$this->_view->display('order-ensure', $tickets);
|
|
|
}
|
|
|
|
|
|
} |
...
|
...
|
|