Commit 8e3f8579 authored by shiyu's avatar shiyu

用户停止回答,人工回复不被发送

parent 7faffb68
......@@ -57,7 +57,7 @@ public class SysIMServiceImpl implements SysIMService {
String key = imUtil.getHumanInterveneKey(dto.getToAccount(), dto.getFromAccount());
redisUtils.set(key, System.currentTimeMillis(), 60 * 3);
if (redisUtils.hasKey(dto.getReqId())){
logger.info("============= 用户要求停止回答了,人工回复不会被发送 ============= ");
logger.info("============= 用户要求停止回答了,人工回复不会被发送 =============");
return Result.failed(ResultCode.USER_STOP_AI_ANSWER.getCode(), ResultCode.USER_STOP_AI_ANSWER.getMessage());
}
Result result = conversationApi.sendChatMsg(dto);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment