This commit is contained in:
hahwu 2025-05-07 11:25:55 +08:00
parent 4b37daa27a
commit 64d166fa7e
2 changed files with 4 additions and 2 deletions

View File

@ -15,8 +15,7 @@
"TELOGDIR" : "./teLog/",
"GameName": "pet_home_local",
"ListenAddr": ":3001",
"CenterAddr": ":3000",
"ServerType":"node",
"ServerID": 1,

View File

@ -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++
}