...
|
...
|
@@ -220,4 +220,55 @@ class OrdersController extends WebAction |
|
|
$this->echoJson($data);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 还原订单
|
|
|
*/
|
|
|
public function restoreOrderAction()
|
|
|
{
|
|
|
$data = array('code' => 400, 'message' => '', 'data' => '');
|
|
|
|
|
|
do {
|
|
|
/* 判断是不是AJAX请求 */
|
|
|
if (!$this->isAjax()) {
|
|
|
break;
|
|
|
}
|
|
|
$uid = $this->auditJumpLogin();
|
|
|
$orderCode = trim($this->post('orderCode', ''));
|
|
|
// $data = OrderData::confirmUserOrder($uid, $orderCode);
|
|
|
$data = array('code' => 400, 'message' => '订单还原成功', 'data' => '');
|
|
|
if (!isset($data['code'])) {
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
while (false);
|
|
|
|
|
|
$this->echoJson($data);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 删除订单
|
|
|
*/
|
|
|
public function deleteOrderAction()
|
|
|
{
|
|
|
$data = array('code' => 400, 'message' => '', 'data' => '');
|
|
|
|
|
|
do {
|
|
|
/* 判断是不是AJAX请求 */
|
|
|
if (!$this->isAjax()) {
|
|
|
break;
|
|
|
}
|
|
|
$uid = $this->auditJumpLogin();
|
|
|
$orderCode = trim($this->post('orderCode', ''));
|
|
|
// $data = OrderData::confirmUserOrder($uid, $orderCode);
|
|
|
$data = array('code' => 400, 'message' => '订单删除成功', 'data' => '');
|
|
|
if (!isset($data['code'])) {
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
while (false);
|
|
|
|
|
|
$this->echoJson($data);
|
|
|
}
|
|
|
|
|
|
|
|
|
} |
...
|
...
|
|