玉虚论道rpc数据
parent
5e34ac46f5
commit
38c2782933
|
|
@ -106,7 +106,7 @@ public class CoreService implements RPCRequestIFace.Iface {
|
||||||
List<com.ljsd.jieling.logic.dao.TeamPosHeroInfo> yxldTree = user.getTeamPosManager().getTeamPosForHero().getOrDefault(GlobalsDef.CROSS_YU_XU_LUN_DAO_THREE,new ArrayList<>());
|
List<com.ljsd.jieling.logic.dao.TeamPosHeroInfo> yxldTree = user.getTeamPosManager().getTeamPosForHero().getOrDefault(GlobalsDef.CROSS_YU_XU_LUN_DAO_THREE,new ArrayList<>());
|
||||||
List<TeamPosHeroInfo> rpcYxldTree = new ArrayList<TeamPosHeroInfo>();
|
List<TeamPosHeroInfo> rpcYxldTree = new ArrayList<TeamPosHeroInfo>();
|
||||||
yxldTree.forEach(n->rpcYxldTree.add(new TeamPosHeroInfo().setHeroId(n.getHeroId()).setPosition(n.getPosition())));
|
yxldTree.forEach(n->rpcYxldTree.add(new TeamPosHeroInfo().setHeroId(n.getHeroId()).setPosition(n.getPosition())));
|
||||||
teams.put(GlobalsDef.CROSS_YU_XU_LUN_DAO_ONE,rpcYxldTree);
|
teams.put(GlobalsDef.CROSS_YU_XU_LUN_DAO_THREE,rpcYxldTree);
|
||||||
set.addAll(rpcYxldTree);
|
set.addAll(rpcYxldTree);
|
||||||
|
|
||||||
// 英雄
|
// 英雄
|
||||||
|
|
|
||||||
|
|
@ -1010,28 +1010,31 @@ public class PlayerLogic {
|
||||||
.build());
|
.build());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for(Map.Entry<Integer, com.ljsd.jieling.thrift.idl.Pokemon> entry:crossArenaManager.getPokemons().entrySet()){
|
if(crossArenaManager.getPokemons()!=null){
|
||||||
Pokemon pokemon = new Pokemon();
|
for(Map.Entry<Integer, com.ljsd.jieling.thrift.idl.Pokemon> entry:crossArenaManager.getPokemons().entrySet()){
|
||||||
pokemon.setTmpId(entry.getValue().getTmpId());
|
Pokemon pokemon = new Pokemon();
|
||||||
pokemon.setId(entry.getValue().getId());
|
pokemon.setTmpId(entry.getValue().getTmpId());
|
||||||
pokemon.setLevel(entry.getValue().getLevel());
|
pokemon.setId(entry.getValue().getId());
|
||||||
pokemon.setStar(entry.getValue().getStar());
|
pokemon.setLevel(entry.getValue().getLevel());
|
||||||
teamOneTeamInfo.addPokemonInfos(CBean2Proto.getSimpleTeamInfoByPokeMon(pokemon, entry.getKey()));
|
pokemon.setStar(entry.getValue().getStar());
|
||||||
|
teamOneTeamInfo.addPokemonInfos(CBean2Proto.getSimpleTeamInfoByPokeMon(pokemon, entry.getKey()));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
LOGGER.info("=====================跨服获取阵容:{}",teamId);
|
LOGGER.info("=====================跨服获取阵容:{}",teamId);
|
||||||
Integer integer = crossArenaManager.getTotalForceByTeam().getOrDefault(teamId,0);
|
Integer integer = crossArenaManager.getTotalForceByTeam().getOrDefault(teamId,0);
|
||||||
teamOneTeamInfo.setTotalForce(integer);
|
teamOneTeamInfo.setTotalForce(integer);
|
||||||
for(Map.Entry<Integer, com.ljsd.jieling.thrift.idl.PurpleMansionSeal> entry:crossArenaManager.getSeals().entrySet()){
|
if(crossArenaManager.getSeals()!= null){
|
||||||
com.ljsd.jieling.thrift.idl.PurpleMansionSeal value = entry.getValue();
|
for(Map.Entry<Integer, com.ljsd.jieling.thrift.idl.PurpleMansionSeal> entry:crossArenaManager.getSeals().entrySet()){
|
||||||
com.ljsd.jieling.thrift.idl.ArenaOfHero arenaOfHero = crossArenaManager.getHeros().get(value.getSubId());
|
com.ljsd.jieling.thrift.idl.PurpleMansionSeal value = entry.getValue();
|
||||||
if(value.getState()==0){
|
com.ljsd.jieling.thrift.idl.ArenaOfHero arenaOfHero = crossArenaManager.getHeros().get(value.getSubId());
|
||||||
continue;
|
if(value.getState()==0){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
teamOneTeamInfo.addSealShow(CommonProto.PurpleSealShowInfo.newBuilder().setType(value.getType()).setId(value.getSealId()).setHeroTId(arenaOfHero==null?0:arenaOfHero.getTemplateId()));
|
||||||
}
|
}
|
||||||
teamOneTeamInfo.addSealShow(CommonProto.PurpleSealShowInfo.newBuilder().setType(value.getType()).setId(value.getSealId()).setHeroTId(arenaOfHero==null?0:arenaOfHero.getTemplateId()));
|
|
||||||
}
|
}
|
||||||
//builder.setTeam(teamOneTeamInfo.build());
|
//builder.setTeam(teamOneTeamInfo.build());
|
||||||
builder.addCrossTeam(teamOneTeamInfo.build());
|
builder.addCrossTeam(teamOneTeamInfo.build());
|
||||||
|
|
||||||
}
|
}
|
||||||
//PlayerInfoProto.GetPlayerCrossYxldOneTeamInfoResponse.Builder playerTeamInfo = PlayerInfoProto.GetPlayerCrossYxldOneTeamInfoResponse.newBuilder().setTeamInfo(builder.build());
|
//PlayerInfoProto.GetPlayerCrossYxldOneTeamInfoResponse.Builder playerTeamInfo = PlayerInfoProto.GetPlayerCrossYxldOneTeamInfoResponse.newBuilder().setTeamInfo(builder.build());
|
||||||
return builder.build();
|
return builder.build();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue