福利红包

back_recharge
mengchengzhen 2021-05-28 18:50:18 +08:00
parent f2e84cceac
commit c29b7a25cd
1 changed files with 4 additions and 3 deletions

View File

@ -414,13 +414,14 @@ public class ChampionshipLogic {
user.getArenaManager().setTopMaxRank(rank);
}
user.getUserMissionManager().onGameEvent(user, GameEvent.CHAMPIONSHIP_RANK, rank);
if(rank == 1){
Poster.getPoster().dispatchEvent(new WelfareRedPackEvent(user.getId(), WelfareRedPacketType.top_match_rank.getType(),1));
}
rank++;
String title = SErrorCodeEerverConfig.getI18NMessage("champion_reward_title");
String content = SErrorCodeEerverConfig.getI18NMessageNeedConvert("champion_reward_txt", new Object[]{sChampionshipReward.getTitleDesc()},new int[]{1},"#");
MailLogic.getInstance().sendMail(user.getId(), title, content, ItemUtil.getMailReward(sChampionshipReward.getSeasonReward()), nowTime, Global.MAIL_EFFECTIVE_TIME);
if(rank == 1){
Poster.getPoster().dispatchEvent(new WelfareRedPackEvent(user.getId(), WelfareRedPacketType.top_match_rank.getType(),1));
}
}
}catch (Exception e){
LOGGER.info("Exception e = "+"size"+ arenaRankInfo.size()+ e.toString());