This commit is contained in:
aozhiwei 2024-05-15 10:49:04 +08:00
parent 5fedb01717
commit b57cb6e429

View File

@ -387,6 +387,9 @@ func (this *playerMgr) GetRecommendPlayers(excludeHums map[string]int32, outHums
rnd := rand.Int() % len(this.recommendHumans)
for i := rnd; i < len(this.recommendHumans); i++ {
if _, ok := excludeHums[this.recommendHumans[i].accountId]; !ok{
if len(outHums) > 5 {
break
}
outHums[this.recommendHumans[i].accountId] = 1
}
}