Commit eaab10f6 authored by shiyu's avatar shiyu

结束人工

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