1
This commit is contained in:
parent
c847b193a4
commit
84be8df2b0
@ -72,7 +72,7 @@ func (this *mail) IsValid(hum common.Player) bool {
|
||||
hum.GetRegisterTime() >= this.userRegStartTime &&
|
||||
hum.GetRegisterTime() <= this.userRegEndTime {
|
||||
if this.mailType == constant.MAIL_TYPE_GROUP {
|
||||
return true
|
||||
return this.isMailUser(hum.GetAccountId())
|
||||
} else if this.mailType == constant.MAIL_TYPE_ALL {
|
||||
return true
|
||||
}
|
||||
@ -152,7 +152,13 @@ func (this *mail) traverseUserGroup(cb func(int64, *userGroup) bool) {
|
||||
if v != nil {
|
||||
return cb(k.(int64), v.(*userGroup))
|
||||
} else {
|
||||
return cb(k.(int64), nil)
|
||||
g := _mailMgr.getGroup(k.(int64))
|
||||
if g != nil {
|
||||
p.Store(k, g)
|
||||
return cb(k.(int64), g)
|
||||
} else {
|
||||
return cb(k.(int64), nil)
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user