1
This commit is contained in:
parent
17649fc4c2
commit
a4effeb06e
8
server/imserver/cache/user_profile.go
vendored
8
server/imserver/cache/user_profile.go
vendored
@ -38,7 +38,9 @@ func (this *userProfile) fillMFUser(pbUser *cs.MFUser) {
|
||||
pbUser.Battling = proto.Int32(0)
|
||||
hum := GetPlayerMgr().GetPlayerByAccountId(this.accountId)
|
||||
if hum != nil {
|
||||
pbUser.OnlineStatus = proto.Int32(1)
|
||||
if hum.IsOnline() {
|
||||
pbUser.OnlineStatus = proto.Int32(1)
|
||||
}
|
||||
if hum.IsBattling() {
|
||||
pbUser.Battling = proto.Int32(1)
|
||||
}
|
||||
@ -59,7 +61,9 @@ func (this *userProfile) fillMFGuildMember(pbMember *cs.MFGuildMember) {
|
||||
pbMember.Battling = proto.Int32(0)
|
||||
hum := GetPlayerMgr().GetPlayerByAccountId(this.accountId)
|
||||
if hum != nil {
|
||||
pbMember.OnlineStatus = proto.Int32(1)
|
||||
if hum.IsOnline() {
|
||||
pbMember.OnlineStatus = proto.Int32(1)
|
||||
}
|
||||
if hum.IsBattling() {
|
||||
pbMember.Battling = proto.Int32(1)
|
||||
}
|
||||
|
@ -840,6 +840,7 @@ func (this *player) CMGuildLogs(hdr *f5.MsgHdr, msg *cs.CMGuildLogs) {
|
||||
|
||||
func (this *player) onOffline() {
|
||||
this.socket.Reset()
|
||||
f5.GetSysLog().Info("onOffline %s", this.GetAccountId())
|
||||
}
|
||||
|
||||
func newPlayer() *player {
|
||||
|
Loading…
x
Reference in New Issue
Block a user