竞技场重写三版,拍脸推送

master_dev
grimm 2024-02-06 18:24:27 +08:00
parent 3bf535943c
commit 9fbfae861a
4 changed files with 5 additions and 5 deletions

View File

@ -21,7 +21,6 @@ import com.ljsd.jieling.logic.activity.event.HeroUpStarEvent;
import com.ljsd.jieling.logic.activity.event.Poster;
import com.ljsd.jieling.logic.activity.event.SuperBoxEvent;
import com.ljsd.jieling.logic.activity.fourChallenge.FourChallengeLogic;
import com.ljsd.jieling.logic.arena.ArenaLogic;
import com.ljsd.jieling.logic.dao.*;
import com.ljsd.jieling.logic.dao.root.GlobalSystemControl;
import com.ljsd.jieling.logic.dao.root.User;
@ -254,8 +253,8 @@ public class GetPlayerInfoHandler extends BaseHandler{
}
//道具异常检查
// ItemLogic.getInstance().checkItem(user);
ArenaLogic.getInstance().newArenaFirstPush(iSession);
MessageUtil.sendIndicationMessage(iSession, 1, MessageTypeProto.MessageType.WorldLevelIndication_VALUE, PlayerInfoProto.WorldLevelIndication.newBuilder().setWorldLeve(GlobleSystemLogic.getGlobalWorldLevelCache()).build(), true);
// PlayerInfoProto.WorldLevelIndication build = PlayerInfoProto.WorldLevelIndication.newBuilder().setWorldLeve(GlobleSystemLogic.getGlobalWorldLevelCache()).build();
// MessageUtil.sendIndicationMessage(iSession, 1, MessageTypeProto.MessageType.WorldLevelIndication_VALUE, build, true);
MessageUtil.sendMessage(iSession, 1, MessageTypeProto.MessageType.GET_PLAYERINFO_RESPONSE_VALUE, getPlayerInfoResponse, true);
}

View File

@ -64,7 +64,7 @@ public class Cmd_arenafalsedata extends GmAbstract {
CommonProto.ArenaPersonInfo personInfo = redisUtil.getmapvalue(RedisKey.NEW_ARENA_FIRST_PUSH, ArenaLogic.FIRST_PUSH, CommonProto.ArenaPersonInfo.class);
if (personInfo == null){
redisUtil.putmap(RedisKey.NEW_ARENA_FIRST_PUSH, ArenaLogic.FIRST_PUSH, CBean2Proto.getNewArenaPlayerProto(first.getId(), roomId));
redisUtil.expireMills(RedisKey.NEW_ARENA_FIRST_PUSH, TimeUtils.ONE_MINUTE * 10);
redisUtil.expireMills(RedisKey.NEW_ARENA_FIRST_PUSH, TimeUtils.ONE_MINUTE * 100);
LOGGER.info("竞技场假数据第一拍脸uid{}房间id{}",first.getId(),roomId);
}
}

View File

@ -1407,7 +1407,6 @@ public class ArenaLogic {
LOGGER.error("菜鸟竞技场赛季发奖退出, 没找到本地的竞技场!耗时:{} ms, 当前时间:{}", TimeUtils.now() - start, TimeUtils.getTimeStamp2(TimeUtils.now()));
return;
}
RedisUtil redisUtil = RedisUtil.getInstence();
NewArenaRank rank = (NewArenaRank) RankEnum.toRank(RankEnum.NEW_ARENA_RANK.getType());
String title = SErrorCodeEerverConfig.getI18NMessage("arena_season_reward_title");
for (Integer roomId : localRooms) {

View File

@ -6,6 +6,7 @@ import com.ljsd.jieling.globals.BIReason;
import com.ljsd.jieling.globals.GlobalItemType;
import com.ljsd.jieling.logic.activity.event.Poster;
import com.ljsd.jieling.logic.activity.event.SaveHeroForceEvent;
import com.ljsd.jieling.logic.arena.ArenaLogic;
import com.ljsd.jieling.logic.dao.*;
import com.ljsd.jieling.logic.dao.root.User;
import com.ljsd.jieling.logic.item.ItemLogic;
@ -51,6 +52,7 @@ public class TrainingLogic {
builder.addInfos(proto);
}
MessageUtil.sendMessage(iSession, 1, MessageTypeProto.MessageType.TrainingArchitectureInfoResponse_VALUE, builder.build(), true);
ArenaLogic.getInstance().newArenaFirstPush(iSession);//每次登陆请求
}
/**