This commit is contained in:
aozhiwei 2024-03-19 18:46:34 +08:00
parent 5e81710e6a
commit dfe6e017ca

View File

@ -81,6 +81,9 @@ func (this *matchMgr) mustBeZn(key int64) *q5.ListHead {
} }
func (this *matchMgr) execMatch(m *matchingInfo) { func (this *matchMgr) execMatch(m *matchingInfo) {
if q5.GetTickCount() - m.addTick > 1000 * 7 {
} else {
l := this.mustBeZn(m.team.GetZnKey()) l := this.mustBeZn(m.team.GetZnKey())
l.ForEach( l.ForEach(
func (ele interface{}) bool { func (ele interface{}) bool {
@ -99,6 +102,7 @@ func (this *matchMgr) execMatch(m *matchingInfo) {
if m.matchOk != nil { if m.matchOk != nil {
this.onMatchOk(m) this.onMatchOk(m)
} }
}
} }
func (this *matchMgr) onMatchOk(m *matchingInfo) { func (this *matchMgr) onMatchOk(m *matchingInfo) {