罗浮,非空验证
parent
57daa695e5
commit
a2728566a5
|
@ -841,6 +841,9 @@ public class ArenaLogic {
|
||||||
RedisUtil redisUtil = RedisUtil.getInstence();
|
RedisUtil redisUtil = RedisUtil.getInstence();
|
||||||
String key = redisUtil.getKey2(RedisKey.LUOFU_TITLE_REWARD_MARK, String.valueOf(user.getId()));
|
String key = redisUtil.getKey2(RedisKey.LUOFU_TITLE_REWARD_MARK, String.valueOf(user.getId()));
|
||||||
Map<String, Long> titleMap = redisUtil.getMapValues(key, String.class, Long.class);
|
Map<String, Long> titleMap = redisUtil.getMapValues(key, String.class, Long.class);
|
||||||
|
if (titleMap == null || titleMap.isEmpty()){
|
||||||
|
return;
|
||||||
|
}
|
||||||
for (Map.Entry<String, Long> entry : titleMap.entrySet()) {
|
for (Map.Entry<String, Long> entry : titleMap.entrySet()) {
|
||||||
int titleId = Integer.parseInt(entry.getKey());
|
int titleId = Integer.parseInt(entry.getKey());
|
||||||
Long time = entry.getValue();
|
Long time = entry.getValue();
|
||||||
|
|
Loading…
Reference in New Issue