邮件优化
This commit is contained in:
parent
51b612aed8
commit
2b771fa30c
@ -239,7 +239,7 @@ func handle(p *Player, m *msg.Msg) error {
|
||||
Items := ChargeItem(p, C.ChargeId)
|
||||
MailId := MailMod.Send(mt, mc, mt_en, mc_en, Items, mail.MAIL_TYPE_GIFT)
|
||||
p.AddLog(m.From, friend.LOG_TYPE_CHARGE_SEND, fmt.Sprintf("%d", MailId))
|
||||
p.PushClientRes(MailMod.BackData())
|
||||
p.PushClientRes(MailMod.NotifyMail(MailId))
|
||||
case msg.HANDLE_TYPE_CHARGE_RECEIVE: // 收到好友的感谢信
|
||||
Content := ""
|
||||
if m.Extra != nil {
|
||||
@ -250,7 +250,7 @@ func handle(p *Player, m *msg.Msg) error {
|
||||
mt, mc, mt_en, mc_en := mailCfg.GetChargeReceiveMail(PlayerSimpleData.Name, Content)
|
||||
MailId := MailMod.Send(mt, mc, mt_en, mc_en, nil, mail.MAIL_TYPE_NORMAL)
|
||||
p.AddLog(m.From, friend.LOG_TYPE_CHARGE_RECEIVE, fmt.Sprintf("%d", MailId))
|
||||
p.PushClientRes(MailMod.BackData())
|
||||
p.PushClientRes(MailMod.NotifyMail(MailId))
|
||||
case msg.HANDLE_TYPE_WISHLIST_SEND: // 发送愿望单请求
|
||||
FriendMod := p.PlayMod.getFriendMod()
|
||||
FriendMod.AddWishApply(int64(m.From))
|
||||
@ -368,6 +368,7 @@ func SyncMailMsg(p *Player) {
|
||||
MailMod.ServerMail = append(MailMod.ServerMail, v.Id)
|
||||
MailMod.Send(v.Title, v.Content, v.TitleEn, v.ContentEn, v.Items, v.Mail_type)
|
||||
}
|
||||
p.PushClientRes(MailMod.BackData())
|
||||
}
|
||||
|
||||
// 返回好友信息
|
||||
|
||||
Loading…
Reference in New Issue
Block a user