back_recharge
zhangshanxue 2019-09-10 15:55:46 +08:00
commit dfeaf4bae0
2 changed files with 6 additions and 0 deletions

View File

@ -1558,6 +1558,9 @@ public class MapLogic {
while (iterator.hasNext()){
TeamPosHeroInfo next = iterator.next();
if(cacheRemove.contains(next.getHeroId())){
if(mapManager.getHeroAllAttributeMap().containsKey(next.getHeroId())){
mapManager.removeOneHeroAttribute(next.getHeroId());
}
iterator.remove();
}
}

View File

@ -408,6 +408,9 @@ public class MapManager extends MongoBase {
}
public void updateHeroOneAttribute(String id, int attribute,int value) {
if(!heroAllAttributeMap.containsKey(id)){
return;
}
heroAllAttributeMap.get(id).put(attribute,value);
updateString("heroAllAttributeMap." + id +"." + attribute, value);
}