Commit eaab10f6 authored by shiyu's avatar shiyu

结束人工

parent b108356c
......@@ -129,10 +129,9 @@ public class SysIMServiceImpl implements SysIMService {
@Override
public Result stopHumanIntervene(ConversationRequestDto dto) {
String key = imUtil.getHumanInterveneKey(dto.getFromAccount(), dto.getToAccount());
boolean flag = redisUtils.delete(key);
if (flag) {
return Result.success();
if (redisUtils.hasKey(key)) {
redisUtils.delete(key);
}
return Result.failed();
return Result.success();
}
}
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