跨服灵脉秘境挑战记录新加
parent
55c463569c
commit
4785536487
|
|
@ -217,6 +217,8 @@ public class CrossLingmaiSecretAreaBattleHandler extends BaseHandler<ArenaInfoPr
|
||||||
arenaRecord.setUserName(csPlayer.getName());
|
arenaRecord.setUserName(csPlayer.getName());
|
||||||
arenaRecord.setId(String.valueOf(id));
|
arenaRecord.setId(String.valueOf(id));
|
||||||
arenaRecord.setPracticeLevel(csPlayer.getPracticeLevel());
|
arenaRecord.setPracticeLevel(csPlayer.getPracticeLevel());
|
||||||
|
String ackServerName = CrossServiceLogic.simplifyServerName(csPlayer.getServerId());
|
||||||
|
arenaRecord.setServerName(ackServerName);
|
||||||
//arenaRecord.setPracticeLevel(user.getHeroManager().getPracticeLevel());//修行等级 TODO
|
//arenaRecord.setPracticeLevel(user.getHeroManager().getPracticeLevel());//修行等级 TODO
|
||||||
arenaRecord.setCreateTime(TimeUtils.nowInt());
|
arenaRecord.setCreateTime(TimeUtils.nowInt());
|
||||||
String defarenaRecordJson = new Gson().toJson(arenaRecord);
|
String defarenaRecordJson = new Gson().toJson(arenaRecord);
|
||||||
|
|
@ -233,6 +235,8 @@ public class CrossLingmaiSecretAreaBattleHandler extends BaseHandler<ArenaInfoPr
|
||||||
arenaRecordDef.setId(String.valueOf(id));
|
arenaRecordDef.setId(String.valueOf(id));
|
||||||
arenaRecordDef.setPracticeLevel(user.getHeroManager().getPracticeLevel());
|
arenaRecordDef.setPracticeLevel(user.getHeroManager().getPracticeLevel());
|
||||||
arenaRecordDef.setCreateTime(TimeUtils.nowInt());
|
arenaRecordDef.setCreateTime(TimeUtils.nowInt());
|
||||||
|
ackServerName = CrossServiceLogic.simplifyServerName(GameApplication.serverId);
|
||||||
|
arenaRecordDef.setServerName(ackServerName);
|
||||||
String defarenaRecordJsonDef = new Gson().toJson(arenaRecordDef);
|
String defarenaRecordJsonDef = new Gson().toJson(arenaRecordDef);
|
||||||
redisUtil.lSet(key2, defarenaRecordJsonDef);
|
redisUtil.lSet(key2, defarenaRecordJsonDef);
|
||||||
//被抢占 给在线的被抢占玩家发红点
|
//被抢占 给在线的被抢占玩家发红点
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,8 @@ public class CrossLingmaiSecretAreaRecordHandler extends BaseHandler<ArenaInfoPr
|
||||||
CommonProto.LingMaiSecretRecord record = CommonProto.LingMaiSecretRecord.newBuilder().setType(arenaRecord.getType())
|
CommonProto.LingMaiSecretRecord record = CommonProto.LingMaiSecretRecord.newBuilder().setType(arenaRecord.getType())
|
||||||
.setUserName(user.getPlayerInfoManager().getNickName())
|
.setUserName(user.getPlayerInfoManager().getNickName())
|
||||||
.setDefName(arenaRecord.getUserName()).setLingMaiId(Integer.parseInt(arenaRecord.getId()))
|
.setDefName(arenaRecord.getUserName()).setLingMaiId(Integer.parseInt(arenaRecord.getId()))
|
||||||
.setTime(arenaRecord.getCreateTime()).setPracticeLevel(arenaRecord.getPracticeLevel()).build();
|
.setTime(arenaRecord.getCreateTime()).setPracticeLevel(arenaRecord.getPracticeLevel())
|
||||||
|
.setDefServerName(arenaRecord.getServerName()!=null?arenaRecord.getServerName():"").build();
|
||||||
builder.addRecordData(record);
|
builder.addRecordData(record);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue