request->isAjax) { $params = $this->request->get(); $service = new OrderService(['mall_id' => $this->mall_id]); return ($data = $service->getOrderList($params)) === false ? $this->error($service->getErrorMsg()) : $this->success('ok', $data); } return $this->render($this->action->id); } /** * 订单详情 * * @return string */ public function actionDetail() { if ($this->request->isAjax) { $id = $this->request->getBodyParam('id'); $service = new OrderService(['mall_id' => $this->mall_id]); return ($data = $service->getOrderDetail($id)) === false ? $this->error($service->getErrorMsg()) : $this->success('ok', $data); } } /** * 重新推送订单 * * @param integer $id * @return mixed */ public function actionResend(int $id) { $service = new OrderService(['mall_id' => $this->mall_id]); return $service->resendOrder($id) === false ? $this->error($service->getErrorMsg()) : $this->success('ok'); } }