From 835c5fad7ad4e723c34be7f5fc073eeb7104e3f4 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期六, 27 四月 2019 11:14:44 +0800
Subject: [PATCH] 6628 【2.0】【后端】查看玩家装备和查看玩家战力功能

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

diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerSocial.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerSocial.py
index 624de77..5a3ba64 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerSocial.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerSocial.py
@@ -26,7 +26,6 @@
 import IpyGameDataPY
 import PlayerViewCache
 import PyGameData
-
 #--------------------社交圈基本结构-------------------
 # 社交圈
 class SocialPlayers(object):
@@ -98,6 +97,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 +190,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