From 2af64e0aa0a6d8c4aea5fed79986adfa364a1ace Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 25 十二月 2018 19:38:10 +0800
Subject: [PATCH] 5424 【后端】【1.4】跨服竞技场开发(Add: C1 03 跨服PK玩家历史赛季信息 #tagMCCrossRealmPKPlayerHisSeasonInfo)

---
 ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerSocial.py |   29 +++++++++++++++++------------
 1 files changed, 17 insertions(+), 12 deletions(-)

diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerSocial.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerSocial.py
index 624de77..744608c 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerSocial.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerSocial.py
@@ -99,6 +99,8 @@
     def GetCount(self):
         return len(self.SocialDict)
     
+    def GetSocialIDList(self): return self.SocialDict.keys()
+    
     def Find(self, tagID):
         return self.SocialDict.get(tagID, None)
     
@@ -189,18 +191,21 @@
     
     # 通知地图好友信息
     def MapServer_SyncFriendInfo(self, curPlayer):
-        if not curPlayer:
-            return
-        sendPack = ChGameToMapPyPack.tagGMFriendInfo() 
-        sendPack.PlayerID = curPlayer.GetPlayerID()
-        sendPack.FriendCnt = self.GetCount()
-        sendPack.Friends = []
-        
-        for friendInfo in self.SocialDict.values():
-            playerFriend = ChGameToMapPyPack.tagGMPlayerFrendInfo()
-            playerFriend.TagID = friendInfo.PlayerID
-            sendPack.Friends.append(playerFriend)
-        NetPackCommon.SendPyPackToMapServer(curPlayer.GetLineNO(), curPlayer.GetRealMapID(), sendPack) 
+        return
+        #=======================================================================
+        # if not curPlayer:
+        #    return
+        # sendPack = ChGameToMapPyPack.tagGMFriendInfo() 
+        # sendPack.PlayerID = curPlayer.GetPlayerID()
+        # sendPack.FriendCnt = self.GetCount()
+        # sendPack.Friends = []
+        # 
+        # for friendInfo in self.SocialDict.values():
+        #    playerFriend = ChGameToMapPyPack.tagGMPlayerFrendInfo()
+        #    playerFriend.TagID = friendInfo.TagID
+        #    sendPack.Friends.append(playerFriend)
+        # NetPackCommon.SendPyPackToMapServer(curPlayer.GetLineNO(), curPlayer.GetRealMapID(), sendPack) 
+        #=======================================================================
     
 
 # 整个游戏的好友管理

--
Gitblit v1.8.0