邮件修改

master_ob2
PC-202302260912\Administrator 2023-08-14 14:52:08 +08:00
parent 01a9b4e151
commit 8aa5f9cdad
1 changed files with 1 additions and 9 deletions

View File

@ -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);
}
} }
/** /**