public function execute()
 {
     $orderId = $this->getParam('order_id');
     if (isset($orderId)) {
         if (!OrderService::singleton()->complete($orderId, $_SESSION['user_id'])) {
             $this->setError('', $GLOBALS['err']->get_all());
             return;
         }
         $this->setSuccess();
     }
 }
 public function execute()
 {
     $orderId = $this->getParam('order_id');
     if (isset($orderId)) {
         if (!OrderService::singleton()->cancel($orderId, $_SESSION['user_id'])) {
             $this->setError('', $GLOBALS['err']->get_all());
             return;
         }
         $oneOrderInfo = OrderService::singleton()->getOneOrderInfoById($_SESSION['user_id'], $orderId);
         $this->setSuccess(array('order' => $oneOrderInfo));
     }
 }