1
This commit is contained in:
parent
9199170817
commit
5549033895
@ -635,12 +635,19 @@ func (this *team) checkMemberState() {
|
||||
func(rsp f5.HttpCliResponse) {
|
||||
sending = false
|
||||
if rsp.GetErr() == nil && rsp.JsonParseOk() {
|
||||
dirty := false
|
||||
for _, u := range rspObj.Users {
|
||||
m := this.GetMemberByAccountId(u.AccountId)
|
||||
if m != nil {
|
||||
if m.IsBattling() != (u.Battling != 0) {
|
||||
dirty = true
|
||||
}
|
||||
m.SetBattling(u.Battling != 0)
|
||||
}
|
||||
}
|
||||
if dirty {
|
||||
this.SendUpdateNotify()
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
@ -653,6 +660,15 @@ func (this *team) checkMemberState() {
|
||||
}
|
||||
}
|
||||
|
||||
func (this *team) genAccountIdParam() string {
|
||||
param := ""
|
||||
this.traverseMembers(
|
||||
func (m common.Player) bool {
|
||||
return true
|
||||
})
|
||||
return param
|
||||
}
|
||||
|
||||
func (this *team) hasOnlinePlayer() bool {
|
||||
has := false
|
||||
this.traverseMembers(
|
||||
|
Loading…
x
Reference in New Issue
Block a user