邮件修改
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){
|
||||
User user = UserManager.getUserNotCache(uid);
|
||||
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);
|
||||
}
|
||||
sendMailToRedis(uid,title,content,reward,sendTime,mailEffectiveTime);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue