|  |  | 
 |  |  |         GameWorld.Log('DeleteFriend -> 封包异常 ->没有这个玩家', playerID)
 | 
 |  |  |         return
 | 
 |  |  |     
 | 
 |  |  |     coupleID = PlayerControl.GetCoupleID(curPlayer)
 | 
 |  |  |     if coupleID == friendID:
 | 
 |  |  |         GameWorld.Log('DeleteFriend -> 封包异常 ->伴侣不能删除好友,coupleID=%s' % coupleID, playerID)
 | 
 |  |  |     couple = PyDataManager.GetDBPyCoupleManager().GetCouple(playerID)
 | 
 |  |  |     if couple and couple.GetCoupleID(playerID) == friendID:
 | 
 |  |  |         #GameWorld.Log('DeleteFriend -> 封包异常 ->伴侣不能删除好友.friendID=%s' % friendID, playerID)
 | 
 |  |  |         PlayerControl.NotifyCode(curPlayer, "DelFriendCoupleLimit")
 | 
 |  |  |         return
 | 
 |  |  |     
 | 
 |  |  |     #离线好友同时删除记录
 | 
 |  |  | 
 |  |  |     if tagPlayer != None:
 | 
 |  |  |         PlayerControl.NotifyCode(tagPlayer, 'Friend_DeleteFriend2', [curPlayer.GetName()])
 | 
 |  |  |     PlayerTeam.OnTeamMemFriendChange(curPlayer, friendID, False)
 | 
 |  |  |      | 
 |  |  |     # 亲密度减少
 | 
 |  |  |     decIntimacyPer = IpyGameDataPY.GetFuncCfg("IntimacyReduce", 1)
 | 
 |  |  |     if decIntimacyPer:
 | 
 |  |  |         PyDataManager.GetIntimacyManager().DelIntimacyBothPer(playerID, friendID, decIntimacyPer)
 | 
 |  |  |          | 
 |  |  |     return
 | 
 |  |  | 
 | 
 |  |  | 
 | 
 |  |  | 
 |  |  |     #    return
 | 
 |  |  |     #===========================================================================
 | 
 |  |  |     
 | 
 |  |  |     if tagID == PlayerControl.GetCoupleID(curPlayer):
 | 
 |  |  |         GameWorld.DebugLog("伴侣不能加入黑名单! tagID=%s" % tagID, curPlayer.GetID())
 | 
 |  |  |     couple = PyDataManager.GetDBPyCoupleManager().GetCouple(curPlayer.GetID())
 | 
 |  |  |     if couple and couple.GetCoupleID(curPlayer.GetID()) == tagID:
 | 
 |  |  |         #GameWorld.DebugLog("伴侣不能加入黑名单! tagID=%s" % tagID, curPlayer.GetID())
 | 
 |  |  |         PlayerControl.NotifyCode(curPlayer, "AddBlackCoupleLimit")
 | 
 |  |  |         return
 | 
 |  |  |     
 | 
 |  |  |     tagPlayer = GameWorld.GetPlayerManager().FindPlayerByID(tagID)
 | 
 |  |  | 
 |  |  |     
 | 
 |  |  |     PlayerControl.NotifyCode(curPlayer, 'AddBlackList', [playerName])
 | 
 |  |  |     
 | 
 |  |  |     # 亲密度减少
 | 
 |  |  |     decIntimacyPer = IpyGameDataPY.GetFuncCfg("IntimacyReduce", 2)
 | 
 |  |  |     if decIntimacyPer:
 | 
 |  |  |         PyDataManager.GetIntimacyManager().DelIntimacyBothPer(curPlayer.GetPlayerID(), tagID, decIntimacyPer)
 | 
 |  |  |          | 
 |  |  |     return
 | 
 |  |  | 
 | 
 |  |  | 
 | 
 |  |  | 
 |  |  |     players.Sync_SocialsInfo(curPlayer)
 | 
 |  |  |     return
 | 
 |  |  | 
 | 
 |  |  | #亲密
 | 
 |  |  | def __OnPlayerLoginIntimacylist(curPlayer, tick):
 | 
 |  |  |     intimacys = PyDataManager.GetIntimacyManager().GetIntimacys(curPlayer.GetID())
 | 
 |  |  |     if intimacys == None:
 | 
 |  |  |         return
 | 
 |  |  |      | 
 |  |  |     intimacys.Sync_SocialsInfo(curPlayer)
 | 
 |  |  |     return
 | 
 |  |  | 
 | 
 |  |  | ## 玩家登陆
 | 
 |  |  | #  @param curPlayer 当前玩家
 | 
 |  |  | #  @param tick 当前时间
 | 
 |  |  | 
 |  |  |     __OnPlayerLoginEnemy(curPlayer, tick)
 | 
 |  |  |     __OnPlayerLoginContacts(curPlayer, tick)
 | 
 |  |  |     __OnPlayerLoginBlacklist(curPlayer, tick)
 | 
 |  |  |     __OnPlayerLoginIntimacylist(curPlayer, tick)
 | 
 |  |  |     
 | 
 |  |  |     # 向当前玩家通知相关联的所有玩家信息
 | 
 |  |  |     PlayerSocial.Sync_AllSocialsInfo(curPlayer)
 |