跨服十绝阵,推送添加服务器名字
parent
c880ba81a0
commit
52e620b449
|
|
@ -48,11 +48,6 @@ public class CrossDeathPathLogic {
|
||||||
return CrossDeathPathLogic.CrossDeathPathLogicInstance.instance;
|
return CrossDeathPathLogic.CrossDeathPathLogicInstance.instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 跨服公会缓存
|
|
||||||
*/
|
|
||||||
private static Map<Integer, GuildInfoCache> crossGuildMap = new ConcurrentHashMap<>();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 服务器列表缓存
|
* 服务器列表缓存
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -509,7 +509,12 @@ public class DeathPathLogic {
|
||||||
for (ZSetOperations.TypedTuple<String> n : allGuild) {
|
for (ZSetOperations.TypedTuple<String> n : allGuild) {
|
||||||
GuildInfo guildInfo = GuilidManager.guildInfoMap.get(Integer.parseInt(n.getValue()));
|
GuildInfo guildInfo = GuilidManager.guildInfoMap.get(Integer.parseInt(n.getValue()));
|
||||||
if(guildInfo!=null){
|
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();
|
Family.DeathPathFirstChangeIndication indication = Family.DeathPathFirstChangeIndication.newBuilder().setChangeInfo(info).build();
|
||||||
GuildLogic.sendIndicationToMember(guildInfo, MessageTypeProto.MessageType.DEATH_PATH_FIRST_CHANGE_INDICATION,indication);
|
GuildLogic.sendIndicationToMember(guildInfo, MessageTypeProto.MessageType.DEATH_PATH_FIRST_CHANGE_INDICATION,indication);
|
||||||
}else{
|
}else{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue