英雄信息报错兼容

back_recharge
duhui 2021-07-29 18:33:30 +08:00
parent 765ede1ef7
commit afee7ddce0
1 changed files with 7 additions and 1 deletions

View File

@ -196,7 +196,13 @@ public class CrossServiceLogic {
arenaOfHero.setJewelInfo(new HashSet<>(hero.getJewelInfo()));
arenaOfHero.setCreateTime(hero.getCreateType());
arenaOfHero.setChangeId(hero.getChangeId());
Map<Integer, Long> attribute = HeroLogic.getInstance().calHeroNotBufferAttribute(user, hero, false, GlobalsDef.WORLD_TEAM_ARENA_DEFENSE);
Map<Integer, Long> attribute = new HashMap<>();
try {
attribute = HeroLogic.getInstance().calHeroNotBufferAttribute(user, hero, false, GlobalsDef.WORLD_TEAM_ARENA_DEFENSE);
}catch (Exception e){
LOGGER.error("英雄熟悉报错:{}",e.getMessage());
attribute = new HashMap<>();
}
arenaOfHero.setAttributeMap(attribute);
return arenaOfHero;
}