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.Subject = this.subject
|
||||||
p.Content = this.content
|
p.Content = this.content
|
||||||
//p.Flags
|
//p.Flags
|
||||||
if hum.IsUnread(this) {
|
if !hum.IsUnread(this) {
|
||||||
p.Flags = 1 << 0
|
p.Flags = 1 << 0
|
||||||
} else {
|
} else {
|
||||||
p.Flags = 0
|
p.Flags = 0
|
||||||
|
@ -275,7 +275,7 @@ func (this *mailMgr) getMail(mailId string) common.Mail {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (this *mailMgr) internalGetMail(mailId string) *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)
|
return p.(*mail)
|
||||||
} else {
|
} else {
|
||||||
return nil
|
return nil
|
||||||
|
@ -164,7 +164,7 @@ func (this* player) IsReadable(m common.Mail) bool {
|
|||||||
func (this* player) IsUnread(m common.Mail) bool {
|
func (this* player) IsUnread(m common.Mail) bool {
|
||||||
mi := this.getInbox(m.GetMailId())
|
mi := this.getInbox(m.GetMailId())
|
||||||
if mi != nil {
|
if mi != nil {
|
||||||
return mi.state != constant.INBOX_STATE_NONE
|
return mi.state == constant.INBOX_STATE_NONE
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user