邮件优化
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)
|
Items := ChargeItem(p, C.ChargeId)
|
||||||
MailId := MailMod.Send(mt, mc, mt_en, mc_en, Items, mail.MAIL_TYPE_GIFT)
|
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.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: // 收到好友的感谢信
|
case msg.HANDLE_TYPE_CHARGE_RECEIVE: // 收到好友的感谢信
|
||||||
Content := ""
|
Content := ""
|
||||||
if m.Extra != nil {
|
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)
|
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)
|
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.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: // 发送愿望单请求
|
case msg.HANDLE_TYPE_WISHLIST_SEND: // 发送愿望单请求
|
||||||
FriendMod := p.PlayMod.getFriendMod()
|
FriendMod := p.PlayMod.getFriendMod()
|
||||||
FriendMod.AddWishApply(int64(m.From))
|
FriendMod.AddWishApply(int64(m.From))
|
||||||
@ -368,6 +368,7 @@ func SyncMailMsg(p *Player) {
|
|||||||
MailMod.ServerMail = append(MailMod.ServerMail, v.Id)
|
MailMod.ServerMail = append(MailMod.ServerMail, v.Id)
|
||||||
MailMod.Send(v.Title, v.Content, v.TitleEn, v.ContentEn, v.Items, v.Mail_type)
|
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