1
This commit is contained in:
parent
338f311cf4
commit
1f6522b4f4
@ -95,7 +95,7 @@ func (this *mail) fillMailDto(hum common.Player, p *common.MailDto) bool {
|
||||
p.Subject = this.subject
|
||||
p.Content = this.content
|
||||
//p.Flags
|
||||
if hum.IsUnread(this) {
|
||||
if !hum.IsUnread(this) {
|
||||
p.Flags = 1 << 0
|
||||
} else {
|
||||
p.Flags = 0
|
||||
|
@ -275,7 +275,7 @@ func (this *mailMgr) getMail(mailId string) common.Mail {
|
||||
}
|
||||
|
||||
func (this *mailMgr) internalGetMail(mailId string) *mail {
|
||||
if p, ok := this.idHash.Load(mailId); ok {
|
||||
if p, ok := this.idHash.Load(q5.ToInt64(mailId)); ok {
|
||||
return p.(*mail)
|
||||
} else {
|
||||
return nil
|
||||
|
@ -164,7 +164,7 @@ func (this* player) IsReadable(m common.Mail) bool {
|
||||
func (this* player) IsUnread(m common.Mail) bool {
|
||||
mi := this.getInbox(m.GetMailId())
|
||||
if mi != nil {
|
||||
return mi.state != constant.INBOX_STATE_NONE
|
||||
return mi.state == constant.INBOX_STATE_NONE
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user