add guild name

back_recharge
wangyuan 2019-10-16 17:17:28 +08:00
parent cdde4a9ef3
commit fa15abe76d
1 changed files with 8 additions and 0 deletions

View File

@ -464,6 +464,14 @@ public class PlayerLogic {
teamInfo.addTeam(CBean2Proto.getSimpleTeamInfoByHero(hero));
}
}
int guildId = user.getPlayerInfoManager().getGuildId();
if(guildId!=0){
if(GuilidManager.guildInfoMap.containsKey(guildId)){
String name = GuilidManager.guildInfoMap.get(guildId).getName();
oneInfo.setGuildName(name);
}
}
oneInfo.setTeam(teamInfo);
PlayerInfoProto.GetPlayerOneTeamInfoResponse.Builder playerTeamInfo = PlayerInfoProto.GetPlayerOneTeamInfoResponse.newBuilder().setTeamInfo(oneInfo);