From 9c3e803af5596afeb5500abe6b50442b4ee0a78a Mon Sep 17 00:00:00 2001 From: lvxinran Date: Sat, 10 Jul 2021 03:06:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E4=BF=A1=E6=81=AF=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ljsd/jieling/logic/player/PlayerLogic.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/serverlogic/src/main/java/com/ljsd/jieling/logic/player/PlayerLogic.java b/serverlogic/src/main/java/com/ljsd/jieling/logic/player/PlayerLogic.java index a0c7045c3..463ac5336 100644 --- a/serverlogic/src/main/java/com/ljsd/jieling/logic/player/PlayerLogic.java +++ b/serverlogic/src/main/java/com/ljsd/jieling/logic/player/PlayerLogic.java @@ -643,15 +643,6 @@ public class PlayerLogic { //获取跨服玩家信息 public PlayerInfoProto.GetPlayerOneTeamInfoResponse getCrossOneTeamInfo( int id,int teamId) throws Exception { -// if(id==0){ -// throw new ErrorCodeException(ErrorCode.SERVER_SELF_DEFINE); -// } -// SArenaRobotConfig sArenaRobotConfig = SArenaRobotConfig.getsArenaRobotConfigById(id); - CommonProto.TeamOneInfo.Builder oneInfo=null; -// if(sArenaRobotConfig!=null){ -// oneInfo=getRobotTeamInfo(sArenaRobotConfig); -// }else{ - oneInfo = getUserTeamOneInfo(id, teamId); ArenaOfUser query = CrossServiceLogic.getInstance().query(id); if(query==null){ throw new ErrorCodeException(ErrorCode.SERVER_SELF_DEFINE); @@ -669,7 +660,7 @@ public class PlayerLogic { teamOneTeamInfo.addTeam(CBean2Proto.getCrossSimpleHero(hero,heroInfo.getPosition())); } builder.setTeam(teamOneTeamInfo.build()); - PlayerInfoProto.GetPlayerOneTeamInfoResponse.Builder playerTeamInfo = PlayerInfoProto.GetPlayerOneTeamInfoResponse.newBuilder().setTeamInfo(oneInfo); + PlayerInfoProto.GetPlayerOneTeamInfoResponse.Builder playerTeamInfo = PlayerInfoProto.GetPlayerOneTeamInfoResponse.newBuilder().setTeamInfo(builder.build()); return playerTeamInfo.build(); }