yx红点类型
parent
e5736e509e
commit
fc18cf8b0e
|
|
@ -61,6 +61,14 @@ public class CrossYuxulundaoGetInfoHandler extends BaseHandler<ArenaInfoProto.Cr
|
||||||
MessageUtil.sendMessage(session, 1, MessageTypeProto.MessageType.CrossYuXuLunDaoGetInfoResponse.getNumber(), builder.build(), true);
|
MessageUtil.sendMessage(session, 1, MessageTypeProto.MessageType.CrossYuXuLunDaoGetInfoResponse.getNumber(), builder.build(), true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
SMServerArenaSetting setting = STableManager.getConfig(SMServerArenaSetting.class).get(2);
|
||||||
|
int privId = setting.getPrivId()[0];
|
||||||
|
if(request.getType()==0){
|
||||||
|
builder.addAllDailyRewardState(arenaManager.getCrossYuxulundaoDailyRewad());
|
||||||
|
builder.setChangedTimes(user.getPlayerInfoManager().getVipPrivilageValue(privId));
|
||||||
|
MessageUtil.sendMessage(session, 1, MessageTypeProto.MessageType.CrossYuXuLunDaoGetInfoResponse.getNumber(), builder.build(), true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
long yuxulundaoTime = arenaManager.getCrossYuxulundaoFirst();
|
long yuxulundaoTime = arenaManager.getCrossYuxulundaoFirst();
|
||||||
TimeControllerOfFunction timeControllerOfFunction = GlobalDataManaager.getInstance().getTimeControllerOfFunctionByFunctinoType(FunctionIdEnum.CrossYuxulundao);
|
TimeControllerOfFunction timeControllerOfFunction = GlobalDataManaager.getInstance().getTimeControllerOfFunctionByFunctinoType(FunctionIdEnum.CrossYuxulundao);
|
||||||
if (null == timeControllerOfFunction) {
|
if (null == timeControllerOfFunction) {
|
||||||
|
|
@ -71,7 +79,7 @@ public class CrossYuxulundaoGetInfoHandler extends BaseHandler<ArenaInfoProto.Cr
|
||||||
} else {
|
} else {
|
||||||
//第一次玩此系统 初始化本人积分为1000积分
|
//第一次玩此系统 初始化本人积分为1000积分
|
||||||
if(yuxulundaoTime == 0){
|
if(yuxulundaoTime == 0){
|
||||||
SMServerArenaSetting setting = STableManager.getConfig(SMServerArenaSetting.class).get(2);
|
//SMServerArenaSetting setting = STableManager.getConfig(SMServerArenaSetting.class).get(2);
|
||||||
csPlayer.setCrossYuxulundaoNewScore(setting.getBasicScore());
|
csPlayer.setCrossYuxulundaoNewScore(setting.getBasicScore());
|
||||||
csPlayer.setCrossYuxulundaoOldScore(setting.getBasicScore());
|
csPlayer.setCrossYuxulundaoOldScore(setting.getBasicScore());
|
||||||
arenaManager.setCrossMatchTimes(0);
|
arenaManager.setCrossMatchTimes(0);
|
||||||
|
|
@ -148,8 +156,6 @@ public class CrossYuxulundaoGetInfoHandler extends BaseHandler<ArenaInfoProto.Cr
|
||||||
RedisUtil.getInstence().setObject(CrossServiceLogic.getKey(uid),csPlayer,CrossServiceLogic.EXPIRE);
|
RedisUtil.getInstence().setObject(CrossServiceLogic.getKey(uid),csPlayer,CrossServiceLogic.EXPIRE);
|
||||||
}
|
}
|
||||||
builder.addAllDailyRewardState(arenaManager.getCrossYuxulundaoDailyRewad());
|
builder.addAllDailyRewardState(arenaManager.getCrossYuxulundaoDailyRewad());
|
||||||
SMServerArenaSetting setting = STableManager.getConfig(SMServerArenaSetting.class).get(2);
|
|
||||||
int privId = setting.getPrivId()[0];
|
|
||||||
builder.setChangedTimes(user.getPlayerInfoManager().getVipPrivilageValue(privId));
|
builder.setChangedTimes(user.getPlayerInfoManager().getVipPrivilageValue(privId));
|
||||||
int myRank = RedisUtil.getInstence().getZSetreverseRank(RedisKey.CROSS_YUXULUNDAO_RANK_PERSON, Integer.toString(crossGroup), Integer.toString(user.getId())).intValue();
|
int myRank = RedisUtil.getInstence().getZSetreverseRank(RedisKey.CROSS_YUXULUNDAO_RANK_PERSON, Integer.toString(crossGroup), Integer.toString(user.getId())).intValue();
|
||||||
builder.setMyRank(myRank);
|
builder.setMyRank(myRank);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue