竞技场放回数据

back_recharge
wangyuan 2019-05-14 11:12:46 +08:00
parent 27441582f6
commit 0d5010107d
2 changed files with 5 additions and 1 deletions

View File

@ -168,6 +168,8 @@ public class ArenaLogic {
defScoreChange = calScore(defScore, myscore,fightResult==1?0:1);
myscoreChange = calScore(myscore, defScore,fightResult);
arenaRecord.setAttackId(uid);
arenaRecord.setDefScore(defScoreChange);
arenaRecord.setAttackForce( HeroLogic.getInstance().calTeamTotalForce(user, GlobalsDef.TEAM_ARENA_DEFENSE));
arenaRecord.setCreateTime((int)(System.currentTimeMillis()/1000));
arenaRecord.setId(KeyGenUtils.produceIdByModule(UUIDEnum.ARENARECORD,Integer.toString(uid)));
RedisUtil.getInstence().putMapEntry(RedisKey.ARENA_RRECORD,Integer.toString(challengeUid),arenaRecord.getId(),arenaRecord);
@ -222,7 +224,7 @@ public class ArenaLogic {
if(skipFight == 0){
builder.setFightData(build);
}
byte[] snapRecord =builder.build().toByteArray();
byte[] snapRecord =build.toByteArray();
arenaRecord.setFightData(snapRecord);
LuaValue getFightData = FightDataUtil.getFinalPlayerFightData(fightTeamInfo, deffightTeamInfo);
LuaValue getOptionData = FightDataUtil.getOptionData("");

View File

@ -65,4 +65,6 @@ public class ArenaRecord {
public void setId(String id) {
this.id = id;
}
}