优化
This commit is contained in:
parent
4b37daa27a
commit
64d166fa7e
@ -15,8 +15,7 @@
|
||||
"TELOGDIR" : "./teLog/",
|
||||
|
||||
"GameName": "pet_home_local",
|
||||
"ListenAddr": ":3001",
|
||||
"CenterAddr": ":3000",
|
||||
|
||||
"ServerType":"node",
|
||||
|
||||
"ServerID": 1,
|
||||
|
||||
@ -2490,6 +2490,9 @@ func ReqFriendRecommend(player *Player, buf []byte) error {
|
||||
Active := 0
|
||||
for k := range FriendMod.GetFriendList() {
|
||||
PlayerSimpleData := G_GameLogicPtr.GetSimplePlayerByUid(k)
|
||||
if PlayerSimpleData == nil {
|
||||
continue
|
||||
}
|
||||
if PlayerSimpleData.Login > GoUtil.Now()-86400 {
|
||||
Active++
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user