From 16c082422d5f3c31ca3121bfd2d8f773932f19a5 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 30 八月 2021 17:01:18 +0800
Subject: [PATCH] 5076 【主干】【gt_1.101.1】【BT3】【bt3_1.100.1】合服后玩家上线没收到合服邮件(优化登录异常时发邮件逻辑)
---
ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFamilySWRH.py | 17 ++++++++++++++---
1 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFamilySWRH.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFamilySWRH.py
index 8b7e907..ff0534f 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFamilySWRH.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFamilySWRH.py
@@ -19,6 +19,7 @@
import NetPackCommon
import ShareDefine
import ChConfig
+import copy
#---------------------------------------------------------------------
def OnLogin(curPlayer):
@@ -30,7 +31,11 @@
def SWRHFBOver(familyID):
if familyID not in PyGameData.g_swrhJoinRecord:
PyGameData.g_swrhJoinRecord.append(familyID)
-
+
+ NotifySWRHFamily(familyID)
+ return
+
+def NotifySWRHFamily(familyID):
#通知
family = GameWorld.GetFamilyManager().FindFamily(familyID)
if not family:
@@ -51,10 +56,16 @@
def OnSWRHStateChange(dictName, isOpen):
+
+ copyJoinRecord = copy.deepcopy(PyGameData.g_swrhJoinRecord)
PyGameData.g_swrhJoinRecord = []
-
+ if isOpen:
+ for familyID in copyJoinRecord:
+ NotifySWRHFamily(familyID)
+
return
#是否在守卫人皇活动中
-def IsInFamilySWRH():return GameWorld.GetGameWorld().GetDictByKey(ShareDefine.Def_Notify_WorldKey_FBFuncState % ChConfig.Def_FBMapID_FamilyInvade)
\ No newline at end of file
+def IsInFamilySWRH():return GameWorld.GetGameWorld().GetDictByKey(ShareDefine.Def_Notify_WorldKey_FBFuncState % ChConfig.Def_FBMapID_FamilyInvade)
+
--
Gitblit v1.8.0