format champion mail content

back_recharge
wangyuan 2019-12-26 10:19:20 +08:00
parent a1f98bdc00
commit dc80e9b288
2 changed files with 7 additions and 2 deletions

View File

@ -361,8 +361,9 @@ public class ChampionshipLogic {
if(user.getArenaManager().getTopMaxRank()==0 || user.getArenaManager().getTopMaxRank()>rank){ if(user.getArenaManager().getTopMaxRank()==0 || user.getArenaManager().getTopMaxRank()>rank){
user.getArenaManager().setTopMaxRank(rank); user.getArenaManager().setTopMaxRank(rank);
} }
rank++;
String title = SErrorCodeEerverConfig.getI18NMessage("champion_reward_title"); String title = SErrorCodeEerverConfig.getI18NMessage("champion_reward_title");
String content = SErrorCodeEerverConfig.getI18NMessage("champion_reward_txt",new Object[]{rank++}); String content = SErrorCodeEerverConfig.getI18NMessage("champion_reward_txt",new Object[]{sChampionshipReward.getTitleDesc()});
MailLogic.getInstance().sendMail(user.getId(),title,content,ItemUtil.getMailReward(sChampionshipReward.getSeasonReward()),nowTime, Global.MAIL_EFFECTIVE_TIME); MailLogic.getInstance().sendMail(user.getId(),title,content,ItemUtil.getMailReward(sChampionshipReward.getSeasonReward()),nowTime, Global.MAIL_EFFECTIVE_TIME);
} }
MongoUtil.getLjsdMongoTemplate().lastUpdate(); MongoUtil.getLjsdMongoTemplate().lastUpdate();

View File

@ -16,6 +16,8 @@ public class SChampionshipReward implements BaseConfig {
private int[][] seasonReward; private int[][] seasonReward;
private String titleDesc;
@Override @Override
public void init() throws Exception { public void init() throws Exception {
@ -39,5 +41,7 @@ public class SChampionshipReward implements BaseConfig {
return seasonReward; return seasonReward;
} }
public String getTitleDesc() {
return titleDesc;
}
} }