From 3892ba4a4d707a04b982a3d03e3102a6cb623499 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 20 十二月 2021 12:21:39 +0800
Subject: [PATCH] 5314 【BT3_1.102.1】【BT4】【BT5_1.101.1】【BT5】【主干】社交表数据重复(优化非本服社交玩家不存档)

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

diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerSocial.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerSocial.py
index 89f95c0..0ad02c8 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerSocial.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerSocial.py
@@ -957,7 +957,7 @@
         cntData = ""
         cnt = 0
         for playerID, socialPlayer in self.SocialInfo.items():
-            if not PlayerControl.GetDBPlayerAccIDByID(playerID):
+            if PyGameData.g_dbPlayerIDMap and not PlayerControl.GetDBPlayerAccIDByID(playerID):
                 GameWorld.ErrLog("非本服社交玩家,不存档! playerID=%s" % playerID)
                 continue
             cnt += 1

--
Gitblit v1.8.0