修复玩家缓存释放

This commit is contained in:
sk 2024-11-26 20:11:26 +08:00
parent f25bef6555
commit 9629db34e6
2 changed files with 2 additions and 2 deletions

View File

@ -1122,7 +1122,7 @@ func (this *Player) GetMessageByGiftId(id string) *model.Message {
}
func (this *Player) IsOnLine() bool {
return this.state != PlayerStateOffline
return this.state == PlayerStateOnline
}
func (this *Player) SetOnline() {
@ -1130,7 +1130,7 @@ func (this *Player) SetOnline() {
}
func (this *Player) IsOffline() bool {
return this.state == PlayerStateOffline
return this.state != PlayerStateOnline
}
func (this *Player) SetOffline() {