This commit is contained in:
aozhiwei 2024-04-20 15:34:57 +08:00
parent 9199170817
commit 5549033895

View File

@ -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(