fix indication

back_recharge
wangyuan 2019-09-19 10:39:52 +08:00
parent 32ba425900
commit 27d0588bce
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ public class ProtocolsManager implements ProtocolsAbstract {
String key = RedisUtil.getInstence().getKey(RedisKey.INDICATION_OFFLINE, Integer.toString(session.getUid()));
Type type = new TypeToken<Map<Integer, ISession.IndicationMsg>>(){}.getType();
Object indicationInRedis = RedisUtil.getInstence().get(key);
int maxMsgId = 0;
int maxMsgId = 1;
if(indicationInRedis!=null){
Map<Integer, ISession.IndicationMsg> map= gson.fromJson(indicationInRedis.toString(),type);
for(Map.Entry<Integer,ISession.IndicationMsg> info : map.entrySet()){