获取第一编队修改

back_recharge
lvxinran 2019-08-06 10:36:21 +08:00
parent 30abfc1d1c
commit f9febb2dcd
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ public class GetPlayerOneTeamInfo extends BaseHandler {
@Override
public void process(ISession iSession, PacketNetData netData) throws Exception {
byte[] bytes = netData.parseClientProtoNetData();
PlayerInfoProto.GetPlayerOneTeamInfo info = PlayerInfoProto.GetPlayerOneTeamInfo.parseFrom(bytes);
PlayerInfoProto.GetPlayerOneTeamInfoRequest info = PlayerInfoProto.GetPlayerOneTeamInfoRequest.parseFrom(bytes);
info.getPlayerId();
PlayerLogic.getInstance().getOneTeamInfo(iSession, info.getPlayerId(), MessageTypeProto.MessageType.GET_PLAYER_ONE_TEAM_INFO_RESPONSE);
}

View File

@ -348,7 +348,7 @@ public class PlayerLogic {
int templateId = user.getHeroManager().getHero(heroInfo.getHeroId()).getTemplateId();
team.addHeroTid(templateId);
}
CommonProto.PlayerTeamInfo.Builder playerTeamInfo = CommonProto.PlayerTeamInfo.newBuilder()
PlayerInfoProto.GetPlayerOneTeamInfoResponse.Builder playerTeamInfo = PlayerInfoProto.GetPlayerOneTeamInfoResponse.newBuilder()
.setHead(1)
.setHeadFrame(playerManager.getHeadFrame())
.setName(playerManager.getNickName()).setUid(session.getUid()).setTeam(team);