28 lines
814 B
Go

package msg
import (
"rocommon"
"rocommon/util"
"roserver/baseserver/model"
"roserver/serverproto"
model2 "roserver/social/model"
)
func init() {
//添加邮件(from BattleBoss)
serverproto.Handle_SOCIAL_SSAddMailNtf = model.HandleBackendMessage(func(ev rocommon.ProcEvent, cliId model.ClientID) {
msg := ev.Msg().(*serverproto.SSAddMailNtf)
util.InfoF("receive SSAddMailNtf msg=%v", msg)
model2.MailMag.AddMailByList(msg.MailConfigId, msg.MailType, msg.MailParamList, msg.RewardList, msg)
})
//gmweb add mail
serverproto.Handle_SOCIAL_SSWebGMAddMailNtf = model.HandleBackendMessage(func(ev rocommon.ProcEvent, cliId model.ClientID) {
msg := ev.Msg().(*serverproto.SSWebGMAddMailNtf)
util.InfoF("receive SSWebGMAddMailNtf msg=%v", msg)
model2.MailMag.AddMailByList_1(msg.MailInfo)
})
}