跨服十绝阵,推送添加服务器名字

back_recharge
duhui 2021-08-30 18:19:51 +08:00
parent c880ba81a0
commit 52e620b449
2 changed files with 6 additions and 6 deletions

View File

@ -48,11 +48,6 @@ public class CrossDeathPathLogic {
return CrossDeathPathLogic.CrossDeathPathLogicInstance.instance;
}
/**
*
*/
private static Map<Integer, GuildInfoCache> crossGuildMap = new ConcurrentHashMap<>();
/**
*
*/

View File

@ -509,7 +509,12 @@ public class DeathPathLogic {
for (ZSetOperations.TypedTuple<String> n : allGuild) {
GuildInfo guildInfo = GuilidManager.guildInfoMap.get(Integer.parseInt(n.getValue()));
if(guildInfo!=null){
Family.DeathPathInfo info = Family.DeathPathInfo.newBuilder().setGuildName(guildInfo.getName()).setGid(currFirstGuildId).setPathId(pathId).build();
GuildCache crossGuild = CrossDeathPathLogic.getCrossGuild(guildInfo.getId());
String name = CrossDeathPathLogic.getInstance().getServerName(crossGuild.getServerId());
String serverName = getGroupId()>0?name:"";
Family.DeathPathInfo info = Family.DeathPathInfo.newBuilder()
.setGuildName(guildInfo.getName()).setGid(currFirstGuildId)
.setPathId(pathId).setServerName(serverName).build();
Family.DeathPathFirstChangeIndication indication = Family.DeathPathFirstChangeIndication.newBuilder().setChangeInfo(info).build();
GuildLogic.sendIndicationToMember(guildInfo, MessageTypeProto.MessageType.DEATH_PATH_FIRST_CHANGE_INDICATION,indication);
}else{