From c70a922a8cbb3c4d110dbd2028c82e047844a432 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 20 Apr 2024 21:15:47 +0800 Subject: [PATCH] 1 --- server/mailserver/player/player.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/mailserver/player/player.go b/server/mailserver/player/player.go index e1d241dd..4dff3101 100644 --- a/server/mailserver/player/player.go +++ b/server/mailserver/player/player.go @@ -8,7 +8,7 @@ import ( "main/constant" ) -type mail struct { +type inbox struct { mailId int64 state int32 expireTime int32 @@ -20,11 +20,11 @@ type player struct { sessionId string registerTime int32 loaded bool - mailHash map[int64]*mail + inboxHash map[int64]*inbox } func (this *player) init() { - this.mailHash = make(map[int64]*mail) + this.inboxHash = make(map[int64]*inbox) } func (this *player) Lock() { @@ -73,11 +73,11 @@ func (this *player) load() { return } for ds.Next() { - p := new(mail) + p := new(inbox) p.mailId = q5.ToInt64(ds.GetByName("mail_id")) p.state = q5.ToInt32(ds.GetByName("state")) p.expireTime = q5.ToInt32(ds.GetByName("expiretime")) - this.mailHash[p.mailId] = p + this.inboxHash[p.mailId] = p } this.loaded = true })