This commit is contained in:
aozhiwei 2024-05-01 21:44:54 +08:00
parent 725e1676c0
commit be299ef07c
4 changed files with 9 additions and 5 deletions

View File

@ -43,6 +43,11 @@ SMLogin
用户群创建时间range(开始时间,结束时间) 用户群创建时间range(开始时间,结束时间)
用户群指定账号列表 用户群指定账号列表
邮件类型
纯个人邮件
群邮件
全局邮件
邮件 邮件
增删改 增删改
用户组 用户组

View File

@ -13,9 +13,8 @@ const (
) )
const ( const (
MAIL_TYPE_PERSONAL = 1 MAIL_TYPE_GROUP = 1
MAIL_TYPE_GROUP = 2 MAIL_TYPE_ALL = 2
MAIL_TYPE_ALL = 3
) )
const ( const (

View File

@ -23,7 +23,6 @@ type mail struct {
userRegEnd int32 userRegEnd int32
attachments []*attachment attachments []*attachment
userGroups *sync.Map userGroups *sync.Map
reciver string
} }
func (this *mail) init() { func (this *mail) init() {

View File

@ -221,6 +221,7 @@ func (this *mailMgr) traversePlayerMail(hum common.Player, cb func(*mail) bool)
} }
func (this *mailMgr) addMail(m *mail) { func (this *mailMgr) addMail(m *mail) {
/*
this.idHash.Store(m.mailId, m) this.idHash.Store(m.mailId, m)
if m.isType(constant.MAIL_TYPE_ALL) { if m.isType(constant.MAIL_TYPE_ALL) {
this.wholeMails.Store(m.mailId, m) this.wholeMails.Store(m.mailId, m)
@ -234,7 +235,7 @@ func (this *mailMgr) addMail(m *mail) {
p.Store(m.mailId, m) p.Store(m.mailId, m)
this.personalMails.Store(m.reciver, p) this.personalMails.Store(m.reciver, p)
} }
} }*/
} }
func (this *mailMgr) addGroup(g *userGroup) { func (this *mailMgr) addGroup(g *userGroup) {