竞技场发奖添加日志
parent
ff865627eb
commit
d1bcc8aab8
|
@ -608,7 +608,7 @@ public class ArenaLogic {
|
||||||
}
|
}
|
||||||
String rewardByRank = getRewardByRank(rank++, type);
|
String rewardByRank = getRewardByRank(rank++, type);
|
||||||
if (!"".equals(rewardByRank)) {
|
if (!"".equals(rewardByRank)) {
|
||||||
MailLogic.getInstance().sendMail(user.getId(), title, content, rewardByRank, TimeUtils.nowInt(), Global.MAIL_EFFECTIVE_TIME);
|
MailLogic.getInstance().sendMailToRedis(user.getId(), title, content, rewardByRank, TimeUtils.nowInt(), Global.MAIL_EFFECTIVE_TIME);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
MongoUtil.getInstence().lastUpdate();
|
MongoUtil.getInstence().lastUpdate();
|
||||||
|
|
|
@ -280,12 +280,12 @@ public class MailLogic {
|
||||||
MongoUtil.getInstence().lastUpdate();
|
MongoUtil.getInstence().lastUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
private static int getSystemMailId(AutoIncrementManager autoIncrementManager,String name) throws Exception {
|
// private static int getSystemMailId(AutoIncrementManager autoIncrementManager,String name) throws Exception {
|
||||||
AutoIncrement autoIncrement = autoIncrementManager.getAutoIncrement(name);
|
// AutoIncrement autoIncrement = autoIncrementManager.getAutoIncrement(name);
|
||||||
int cnt = autoIncrement.getCnt();
|
// int cnt = autoIncrement.getCnt();
|
||||||
autoIncrement.setCnt(cnt+1);
|
// autoIncrement.setCnt(cnt+1);
|
||||||
return cnt;
|
// return cnt;
|
||||||
}
|
// }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 有附件已领取, 无附件已读取的邮件
|
* 有附件已领取, 无附件已读取的邮件
|
||||||
|
@ -324,7 +324,7 @@ public class MailLogic {
|
||||||
if (user != null){
|
if (user != null){
|
||||||
Mail mail = new Mail(uid,title,content,reward,sendTime, mailEffectiveTime,"system",Global.MAIL_TYPE_SYS);
|
Mail mail = new Mail(uid,title,content,reward,sendTime, mailEffectiveTime,"system",Global.MAIL_TYPE_SYS);
|
||||||
user.getMailManager().addMail(mail);
|
user.getMailManager().addMail(mail);
|
||||||
LOGGER.info("sendMail==>uid={},title={},content={},reward:{}",uid,title,content,reward);
|
LOGGER.info("sendMail==>uid={},mail={}",uid,mail);
|
||||||
MessageUtil.sendRedIndication(uid, GlobalsDef.MAIL_RED_TYPE);
|
MessageUtil.sendRedIndication(uid, GlobalsDef.MAIL_RED_TYPE);
|
||||||
}else {
|
}else {
|
||||||
LOGGER.error("用户为空,error sendMail==>uid={},title={},reward:{}",uid,title,reward);
|
LOGGER.error("用户为空,error sendMail==>uid={},title={},reward:{}",uid,title,reward);
|
||||||
|
|
Loading…
Reference in New Issue