This commit is contained in:
aozhiwei 2024-04-15 20:40:15 +08:00
parent 5014854c18
commit be61205a1b

View File

@ -185,8 +185,12 @@ func (this *cacheMgr) AsyncRecommendList(recommendType int32, accountId string,
excludeHums := make(map[string]int32)
excludeHums[accountId] = 1
outHums := make(map[string]int32)
doFunc := func () {
}
if recommendType == constant.RECOMMEND_TYPE_BATTLE {
GetPlayerMgr().GetRecommendPlayers(excludeHums, outHums, 5)
doFunc()
} else if recommendType == constant.RECOMMEND_TYPE_RECENT_GAME {
f5.GetJsStyleDb().PageQuery(
constant.FRIEND_DB,
@ -214,6 +218,7 @@ func (this *cacheMgr) AsyncRecommendList(recommendType int32, accountId string,
outHums[accountId1] = 1
}
}
doFunc()
})
}
}