报错修改

back_recharge
duhui 2021-07-28 18:05:10 +08:00
parent 01ec371f1d
commit 83ced034b6
1 changed files with 11 additions and 16 deletions

View File

@ -993,9 +993,7 @@ public class ArenaLogic {
int enemyId = enemy.getEnemyId();
SArenaRobotConfig sArenaRobotConfig = SArenaRobotConfig.getsArenaRobotConfigById(enemyId);
CommonProto.Team teamBuild = CommonProto.Team.newBuilder().addAllHeroTid(sArenaRobotConfig.getHeroList()).build();
CommonProto.ArenaPersonInfo personInfoBuild = null;
try {
personInfoBuild = CommonProto.ArenaPersonInfo.newBuilder()
CommonProto.ArenaPersonInfo personInfoBuild = CommonProto.ArenaPersonInfo.newBuilder()
.setUid(enemy.getEnemyId_UUid())
.setLevel(sArenaRobotConfig.getRobotLevel())
.setName(enemy.getRandomName()==null?"":enemy.getRandomName())
@ -1006,9 +1004,6 @@ public class ArenaLogic {
.setGender(enemy.isGender()?1:0)
.setRank(rank)
.build();
} catch (UnknownHostException e) {
e.printStackTrace();
}
return CommonProto.ArenaEnemy.newBuilder()
.setPersonInfo(personInfoBuild)
.setWorshipTime(proudTime)