好友推荐优化
This commit is contained in:
parent
b559d3878f
commit
a731706147
@ -302,6 +302,11 @@ func GetRecommendPlayer(p *Player, num int) []int {
|
||||
endFilterList = notChargeNotWatchAdFilterFunc(chargeFilterList)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
endFilterList = make([]int, 0, len(chargeFilterList))
|
||||
for _, ps := range chargeFilterList {
|
||||
endFilterList = append(endFilterList, ps.Uid)
|
||||
}
|
||||
}
|
||||
|
||||
recommendList := GoUtil.RandSliceNum(endFilterList, num)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user