mail_msg.go 814 B

123456789101112131415161718192021222324252627
  1. package msg
  2. import (
  3. "rocommon"
  4. "rocommon/util"
  5. "roserver/baseserver/model"
  6. "roserver/serverproto"
  7. model2 "roserver/social/model"
  8. )
  9. func init() {
  10. //添加邮件(from BattleBoss)
  11. serverproto.Handle_SOCIAL_SSAddMailNtf = model.HandleBackendMessage(func(ev rocommon.ProcEvent, cliId model.ClientID) {
  12. msg := ev.Msg().(*serverproto.SSAddMailNtf)
  13. util.InfoF("receive SSAddMailNtf msg=%v", msg)
  14. model2.MailMag.AddMailByList(msg.MailConfigId, msg.MailType, msg.MailParamList, msg.RewardList, msg)
  15. })
  16. //gmweb add mail
  17. serverproto.Handle_SOCIAL_SSWebGMAddMailNtf = model.HandleBackendMessage(func(ev rocommon.ProcEvent, cliId model.ClientID) {
  18. msg := ev.Msg().(*serverproto.SSWebGMAddMailNtf)
  19. util.InfoF("receive SSWebGMAddMailNtf msg=%v", msg)
  20. model2.MailMag.AddMailByList_1(msg.MailInfo)
  21. })
  22. }