From 2cbf9aac044d14c2ee5233bfe247b6f57d89a602 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 13 十月 2022 16:32:39 +0800
Subject: [PATCH] 9719 【越南】【BT7】【主干】跨服全民充值(修复未启动跨服服务器或没有跨服全民充值活动时玩家登录可能导致本服报错bug)
---
ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossRealmMsg.py | 4 ++--
ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossActAllRecharge.py | 3 +++
ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossActionControl.py | 2 ++
3 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossActAllRecharge.py b/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossActAllRecharge.py
index 4d8af43..923b1a3 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossActAllRecharge.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossActAllRecharge.py
@@ -311,6 +311,9 @@
def Sync_CrossActAllRechargeInfo(curPlayer=None, syncKey=None):
## 通知活动信息
+ if PyGameData.g_crossActInfoDict == None:
+ return
+
if curPlayer:
actInfo = CrossActionControl.GetPlayerCrossActInfo(curPlayer, ShareDefine.CrossActName_AllRecharge)
# 活动中同步活动信息
diff --git a/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossActionControl.py b/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossActionControl.py
index 81cee13..303c029 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossActionControl.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossActionControl.py
@@ -639,6 +639,8 @@
def GetPlayerCrossActInfo(curPlayer, actName):
## 获取跨服玩家对应的跨服活动信息
+ if PyGameData.g_crossActInfoDict == None:
+ return {}
actInfoDict = PyGameData.g_crossActInfoDict.get(actName, {})
if not actInfoDict:
return {}
diff --git a/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossRealmMsg.py b/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossRealmMsg.py
index d3fce10..d0f5dfa 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossRealmMsg.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossRealmMsg.py
@@ -248,8 +248,8 @@
'''
if not GameWorld.IsCrossServer():
return
- if not dataMsg:
- return
+ #if not dataMsg:
+ # return
if serverGroupIDList == None:
serverGroupIDList = []
--
Gitblit v1.8.0