Merge branch 'master' of http://60.1.1.230/backend/jieling_server
commit
dfeaf4bae0
|
@ -1558,6 +1558,9 @@ public class MapLogic {
|
||||||
while (iterator.hasNext()){
|
while (iterator.hasNext()){
|
||||||
TeamPosHeroInfo next = iterator.next();
|
TeamPosHeroInfo next = iterator.next();
|
||||||
if(cacheRemove.contains(next.getHeroId())){
|
if(cacheRemove.contains(next.getHeroId())){
|
||||||
|
if(mapManager.getHeroAllAttributeMap().containsKey(next.getHeroId())){
|
||||||
|
mapManager.removeOneHeroAttribute(next.getHeroId());
|
||||||
|
}
|
||||||
iterator.remove();
|
iterator.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -408,6 +408,9 @@ public class MapManager extends MongoBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void updateHeroOneAttribute(String id, int attribute,int value) {
|
public void updateHeroOneAttribute(String id, int attribute,int value) {
|
||||||
|
if(!heroAllAttributeMap.containsKey(id)){
|
||||||
|
return;
|
||||||
|
}
|
||||||
heroAllAttributeMap.get(id).put(attribute,value);
|
heroAllAttributeMap.get(id).put(attribute,value);
|
||||||
updateString("heroAllAttributeMap." + id +"." + attribute, value);
|
updateString("heroAllAttributeMap." + id +"." + attribute, value);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue