/** * 处理未匹配时的回复. * * @return Response */ private function handleNoMatch($account) { $event = $this->replyRepository->getNoMatchReply($account->id); $eventId = $event['content'][0]; return $eventId ? $this->messageService->eventToMessage($eventId) : $this->messageService->emptyMessage(); }
/** * 获取无匹配时的自动回复. */ public function getNoMatchReply() { return $this->replyRepository->getNoMatchReply($this->account()->id); }