优化
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)
|
PlayerList3 := G_GameLogicPtr.RankMgr.getAllRank(RANK_TYPE_USER)
|
||||||
PlayerList4 := make([]int, 0)
|
PlayerList4 := make([]int, 0)
|
||||||
for _, v := range PlayerList3 {
|
for _, v := range PlayerList3 {
|
||||||
if v.Score < 15 {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
if v.Uid == int(p.M_DwUin) {
|
if v.Uid == int(p.M_DwUin) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
PlayerSimpleData := G_GameLogicPtr.GetSimplePlayerByUid(v.Uid)
|
//PlayerSimpleData := G_GameLogicPtr.GetSimplePlayerByUid(v.Uid)
|
||||||
if GoUtil.Now()-PlayerSimpleData.Loginout > 86400 {
|
// if PlayerSimpleData.Level < 6 {
|
||||||
continue
|
// continue
|
||||||
}
|
// }
|
||||||
if PlayerSimpleData.Level < 6 {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
PlayerList4 = append(PlayerList4, v.Uid)
|
PlayerList4 = append(PlayerList4, v.Uid)
|
||||||
}
|
}
|
||||||
L := GoUtil.RandSliceNum(PlayerList4, 1)
|
L := GoUtil.RandSliceNum(PlayerList4, 1)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user