request->isAjax) { $params = $this->request->getQueryParams(); $data = (new RefundService(['mall_id' => $this->mall_id]))->getRefundOrderList($params); return $this->success('ok', $data); } return $this->render('list'); } /** * 补单 * * @return void */ public function actionReissue() { if (!$this->request->isPost) { return $this->error('请求错误'); } // post $ids = $this->request->post('ids'); if (($service = new RefundService(['mall_id' => $this->mall_id]))->reissueRefund($ids)) { return $this->success('补单申请成功'); } return $this->error($service->error); } }