优化
This commit is contained in:
parent
fe891995fb
commit
ddc9d9a1ef
@ -720,19 +720,13 @@ func GetVisitorPlayer(p *Player) int {
|
||||
PlayerList3 := G_GameLogicPtr.RankMgr.getAllRank(RANK_TYPE_USER)
|
||||
PlayerList4 := make([]int, 0)
|
||||
for _, v := range PlayerList3 {
|
||||
if v.Score < 15 {
|
||||
continue
|
||||
}
|
||||
if v.Uid == int(p.M_DwUin) {
|
||||
continue
|
||||
}
|
||||
PlayerSimpleData := G_GameLogicPtr.GetSimplePlayerByUid(v.Uid)
|
||||
if GoUtil.Now()-PlayerSimpleData.Loginout > 86400 {
|
||||
continue
|
||||
}
|
||||
if PlayerSimpleData.Level < 6 {
|
||||
continue
|
||||
}
|
||||
//PlayerSimpleData := G_GameLogicPtr.GetSimplePlayerByUid(v.Uid)
|
||||
// if PlayerSimpleData.Level < 6 {
|
||||
// continue
|
||||
// }
|
||||
PlayerList4 = append(PlayerList4, v.Uid)
|
||||
}
|
||||
L := GoUtil.RandSliceNum(PlayerList4, 1)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user