|
|
|
@ -236,7 +236,7 @@ public class AskServiceImpl implements AskService {
|
|
|
|
|
// 首先看看default里面是不是存在,如果存在,就从default里面去找
|
|
|
|
|
if (StrUtil.isNotEmpty(library.getDefaultAnswer())) {
|
|
|
|
|
String resText = library.getDefaultAnswer();
|
|
|
|
|
downloadTalkVideo(defaultNoMatchId,response);
|
|
|
|
|
downloadTalkVideo(library.getDefaultAnswerResourceId(), response);
|
|
|
|
|
// 保存记录
|
|
|
|
|
saveQaRecord(talkReqVO.getProcessId(), "default", library.getId(), talkReqVO.getText(), library, resText);
|
|
|
|
|
log.info("{}:找到了默认答案:{}", rasaResult, talkReqVO.getText());
|
|
|
|
@ -258,6 +258,7 @@ public class AskServiceImpl implements AskService {
|
|
|
|
|
} else {
|
|
|
|
|
log.info("{}:病历配置的回答:{}:为空不为空,但在获取的时候,答案为空,但是获取默认语句也为空,那么回复未识别语句", rasaResult, askPatientAnswer.getId());
|
|
|
|
|
downloadTalkVideo(defaultNoMatchId, response);
|
|
|
|
|
saveQaRecord(talkReqVO.getProcessId(), "default", null, talkReqVO.getText(), library, "您好,我没有听懂您说什么");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
@ -273,9 +274,6 @@ public class AskServiceImpl implements AskService {
|
|
|
|
|
}
|
|
|
|
|
talkResultResVO.setType(1);
|
|
|
|
|
return talkResultResVO;
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
// return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void downloadTalkVideo(String fileId, HttpServletResponse response) {
|
|
|
|
|