📅  最后修改于: 2022-03-11 14:53:43.895000             🧑  作者: Mango
$status_order = $this->checkOrder($this->request->get['order_id']);
$id = $this->request->get['id'];
$this->load->model('checkout/order');
if ($status_order) {
$this->model_checkout_order->addOrderHistory($id, 5);
$this->response->redirect($this->url->link('akbarali/intend/success', '', 'SSL'));
} else {
$this->model_checkout_order->addOrderHistory($id, 7);
$this->response->redirect($this->url->link('akbarali/intend/error', '', 'SSL'));
}