邮件优化
This commit is contained in:
parent
6d51318869
commit
aa4c4b154c
@ -30,6 +30,8 @@ type ServerMail struct {
|
||||
Content string
|
||||
TitleEn string
|
||||
ContentEn string
|
||||
TitlePtBr string
|
||||
ContentPtBr string
|
||||
Items []*item.Item
|
||||
Start_time int64
|
||||
Register_time int64
|
||||
@ -80,6 +82,8 @@ func (r *MailMgr) LoadMail(msg *msg.Msg) (interface{}, error) {
|
||||
Content: v.Content,
|
||||
TitleEn: v.TitleEn,
|
||||
ContentEn: v.ContentEn,
|
||||
TitlePtBr: v.TitlePtBr,
|
||||
ContentPtBr: v.ContentPtBr,
|
||||
Items: item.ParseItem(items),
|
||||
Start_time: v.Start_time,
|
||||
Register_time: v.Register_time,
|
||||
|
||||
@ -497,7 +497,16 @@ func SyncMailMsg(p *Player) {
|
||||
continue
|
||||
}
|
||||
MailMod.ServerMail = append(MailMod.ServerMail, v.Id)
|
||||
MailMod.Send(v.Title, "", v.Content, v.TitleEn, "", v.ContentEn, v.Items, v.Mail_type)
|
||||
MailMod.SendMail(&mail.MailStruct{
|
||||
Title: v.Title,
|
||||
Content: v.Content,
|
||||
TitleEn: v.TitleEn,
|
||||
ContentEn: v.ContentEn,
|
||||
Items: v.Items,
|
||||
Type: v.Mail_type,
|
||||
TitlePtBr: v.TitlePtBr,
|
||||
ContentPtBr: v.ContentPtBr,
|
||||
})
|
||||
}
|
||||
p.PushClientRes(MailMod.BackData())
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user