|
|
|
@ -89,8 +89,11 @@ public class FontEndInteractiveController {
|
|
|
|
|
@GetMapping("/getAnswerByChatId") |
|
|
|
|
public R getAnswerByChatId(@RequestParam("chatId") @ApiParam("会话ID") String chatId){ |
|
|
|
|
List<AnswerVO> answers = hznlmInvokeService.getAnswerBySessionIds(chatId); |
|
|
|
|
if(Func.isNotEmpty(answers) && answers.size() == 1 && answers.get(0).getStatus().intValue() == 0) { |
|
|
|
|
return R.data(answers.get(0)); |
|
|
|
|
if(Func.isNotEmpty(answers) && answers.size() == 1) { |
|
|
|
|
AnswerVO answerVO = answers.get(0); |
|
|
|
|
if(answerVO.getStatus().intValue() == 0 || answerVO.getStatus().intValue() == -2) { |
|
|
|
|
return R.data(answerVO); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return R.success("操作成功!"); |
|
|
|
|
} |
|
|
|
|