公会boss保底
parent
6c0c612fae
commit
4c0e63ddaf
|
@ -444,12 +444,22 @@ public class GuildChallengeLogic {
|
|||
String title = SErrorCodeEerverConfig.getI18NMessage("GuildRanking_mail_gonghui_title");
|
||||
String content = SErrorCodeEerverConfig.getI18NMessage("GuildRanking_mail_gonghui_txt", new Object[]{index});
|
||||
|
||||
SGuildCheckpointRank config = configMap.get(index);
|
||||
String uid = rankInfo.getValue();
|
||||
SGuildCheckpointRank config;
|
||||
User user = UserManager.getUser(Integer.parseInt(uid));
|
||||
if(user.getGuildMyInfo().getRefreshedBoss().contains(bossId)){
|
||||
title = SErrorCodeEerverConfig.getI18NMessage("GuildRanking_mail_gonghuirepeat_title");
|
||||
content = SErrorCodeEerverConfig.getI18NMessage("GuildRanking_mail_gonghuirepeat_txt");
|
||||
config = configMap.get(-1);
|
||||
if(config==null){
|
||||
config = configMap.get(index);
|
||||
}
|
||||
}else{
|
||||
config = configMap.get(index);
|
||||
}
|
||||
if(config==null){
|
||||
continue;
|
||||
}
|
||||
String uid = rankInfo.getValue();
|
||||
User user = UserManager.getUser(Integer.parseInt(uid));
|
||||
if (user.getPlayerInfoManager().getGuildId()==guildId){
|
||||
String mailReward = ItemUtil.getMailReward(config.getRankingReward());
|
||||
MailLogic.getInstance().sendMail(Integer.parseInt(uid), title, content, mailReward, TimeUtils.nowInt(), Global.MAIL_EFFECTIVE_TIME);
|
||||
|
|
Loading…
Reference in New Issue