修复玩家缓存释放
This commit is contained in:
parent
f25bef6555
commit
9629db34e6
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue