process)) { $processId = request()->input('process_id'); $this->process = RemittanceAuditProcess::detail()->find($processId); if (!isset($this->process)) { throw new AppException("未找到id为{$processId}的审核进程记录"); } } return $this->process; } /** * @return \Illuminate\Http\JsonResponse * @throws \Exception */ public function pass() { $this->toNextState(); return $this->successJson('成功', ['remittanceAudit' => $this->getProcess()]); } /** * @return \Illuminate\Http\JsonResponse * @throws \Exception */ public function reject() { $this->toClosedState(); return $this->successJson('成功', ['remittanceAudit' => $this->getProcess()]); } }