邮件修改
parent
01a9b4e151
commit
8aa5f9cdad
|
@ -306,15 +306,7 @@ public class MailLogic {
|
||||||
* 发送邮件
|
* 发送邮件
|
||||||
*/
|
*/
|
||||||
public void sendMail(int uid, String title, String content, String reward, int sendTime, int mailEffectiveTime){
|
public void sendMail(int uid, String title, String content, String reward, int sendTime, int mailEffectiveTime){
|
||||||
User user = UserManager.getUserNotCache(uid);
|
sendMailToRedis(uid,title,content,reward,sendTime,mailEffectiveTime);
|
||||||
if (user != null){
|
|
||||||
Mail mail = new Mail(uid,title,content,reward,sendTime, mailEffectiveTime,"system",Global.MAIL_TYPE_SYS);
|
|
||||||
user.getMailManager().addMail(mail);
|
|
||||||
LOGGER.info("sendMail==>uid={},mail={}",uid,mail);
|
|
||||||
MessageUtil.sendRedIndication(uid, GlobalsDef.MAIL_RED_TYPE);
|
|
||||||
}else {
|
|
||||||
LOGGER.error("用户为空,error sendMail==>uid={},title={},reward:{}",uid,title,reward);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue