获取InviteInfo添加异常日志

pull/1270/head
648540858 2024-01-12 10:35:26 +08:00
parent 41c7137e3a
commit 18b5c73365
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ public class InviteStreamServiceImpl implements IInviteStreamService {
+ ":*"; + ":*";
List<Object> scanResult = RedisUtil.scan(redisTemplate, key); List<Object> scanResult = RedisUtil.scan(redisTemplate, key);
if (scanResult.size() != 1) { if (scanResult.size() != 1) {
return null; logger.warn("[获取InviteInfo] 发现 key: {}存在多条", key);
} }
return (InviteInfo) redisTemplate.opsForValue().get(scanResult.get(0)); return (InviteInfo) redisTemplate.opsForValue().get(scanResult.get(0));