getRefunds(); $this->view->setVar('pager', $pager); } /** * @Get("/{id:[0-9]+}/show", name="admin.refund.show") */ public function showAction($id) { $refundService = new RefundService(); $refund = $refundService->getRefund($id); $order = $refundService->getOrder($refund->order_id); $trade = $refundService->getTrade($refund->trade_id); $account = $refundService->getAccount($trade->user_id); $user = $refundService->getUser($trade->user_id); $this->view->setVar('refund', $refund); $this->view->setVar('order', $order); $this->view->setVar('trade', $trade); $this->view->setVar('account', $account); $this->view->setVar('user', $user); } /** * @Post("/{id:[0-9]+}/review", name="admin.refund.review") */ public function reviewAction($id) { $refundService = new RefundService; $refundService->reviewRefund($id); $location = $this->request->getHTTPReferer(); $content = [ 'location' => $location, 'msg' => '审核退款成功', ]; return $this->ajaxSuccess($content); } }