鸿蒙阵
parent
6a1faf574c
commit
5776065109
|
|
@ -3855,9 +3855,13 @@ public class HeroLogic{
|
|||
LOGGER.info("addHongmengTableHero uid=>{} the heroId=>{} is HongmengGuard", user.getId(), heroId);
|
||||
throw new ErrorCodeException(ErrorCode.SERVER_DEFINE_SELF);
|
||||
}
|
||||
if (heroManager.getResonances().values().contains(heroId)) {
|
||||
LOGGER.info("addHongmengTableHero uid=>{} the heroId=>{} is Resonances", user.getId(), heroId);
|
||||
throw new ErrorCodeException(ErrorCode.SERVER_DEFINE_SELF);
|
||||
}
|
||||
Map<Integer, String> resonances = heroManager.getHongmengGuards();
|
||||
String resonanceInfo = resonances.get(index);
|
||||
if (resonanceInfo == null || resonanceInfo.isEmpty()) {
|
||||
if (resonanceInfo != null && !resonanceInfo.isEmpty()) {
|
||||
LOGGER.info("addHongmengTableHero uid=>{} not hero key=>{}", user.getId(), index);
|
||||
throw new ErrorCodeException(ErrorCode.SERVER_DEFINE_SELF);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue