1
This commit is contained in:
parent
612c46eea8
commit
bb8bfe2340
3
server/imserver/cache/user_profile.go
vendored
3
server/imserver/cache/user_profile.go
vendored
@ -35,7 +35,8 @@ func (this *userProfile) fillMFUser(pbUser *cs.MFUser) {
|
|||||||
}
|
}
|
||||||
pbUser.Rank = proto.Int32(this.rank)
|
pbUser.Rank = proto.Int32(this.rank)
|
||||||
{
|
{
|
||||||
if GetPlayerMgr().GetPlayerByAccountId(this.accountId) != nil {
|
hum := GetPlayerMgr().GetPlayerByAccountId(this.accountId)
|
||||||
|
if hum != nil {
|
||||||
pbUser.OnlineStatus = proto.Int32(1)
|
pbUser.OnlineStatus = proto.Int32(1)
|
||||||
} else {
|
} else {
|
||||||
pbUser.OnlineStatus = proto.Int32(0)
|
pbUser.OnlineStatus = proto.Int32(0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user