1
This commit is contained in:
parent
9199170817
commit
5549033895
@ -635,12 +635,19 @@ func (this *team) checkMemberState() {
|
|||||||
func(rsp f5.HttpCliResponse) {
|
func(rsp f5.HttpCliResponse) {
|
||||||
sending = false
|
sending = false
|
||||||
if rsp.GetErr() == nil && rsp.JsonParseOk() {
|
if rsp.GetErr() == nil && rsp.JsonParseOk() {
|
||||||
|
dirty := false
|
||||||
for _, u := range rspObj.Users {
|
for _, u := range rspObj.Users {
|
||||||
m := this.GetMemberByAccountId(u.AccountId)
|
m := this.GetMemberByAccountId(u.AccountId)
|
||||||
if m != nil {
|
if m != nil {
|
||||||
|
if m.IsBattling() != (u.Battling != 0) {
|
||||||
|
dirty = true
|
||||||
|
}
|
||||||
m.SetBattling(u.Battling != 0)
|
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 {
|
func (this *team) hasOnlinePlayer() bool {
|
||||||
has := false
|
has := false
|
||||||
this.traverseMembers(
|
this.traverseMembers(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user