From 256fb6df5072850105da4b381f8ce1896c168ac1 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 17 三月 2026 10:54:32 +0800
Subject: [PATCH] 16 卡牌服务端(自动开服清档增加清除榜单、通用记录;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DB/StructData/DBGameRec.py | 4 ++++
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/GameWorldEvent.py | 4 ++++
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DB/StructData/DBBillboard.py | 4 ++++
3 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DB/StructData/DBBillboard.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DB/StructData/DBBillboard.py
index e17269f..88c2eaa 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DB/StructData/DBBillboard.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DB/StructData/DBBillboard.py
@@ -384,6 +384,10 @@
self.__billboardDict = {} # 排行榜字典 {(billboardType, groupValue1, groupValue2):Billboard, ...}
return
+ def DelAllData(self):
+ self.__billboardDict = {}
+ return
+
def GetBillboardGroupList(self, bType):
## 根据榜单类型获取该类型所有分组榜单信息
## @return: [(billboardType, groupValue1, groupValue2), ...]
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DB/StructData/DBGameRec.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DB/StructData/DBGameRec.py
index 86d6656..4091263 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DB/StructData/DBGameRec.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DB/StructData/DBGameRec.py
@@ -324,6 +324,10 @@
self.__recTypeDict = {} # {recType:GameRecTypeMgr, ...}
return
+ def DelAllData(self):
+ self.__recTypeDict = {}
+ return
+
def GetRecTypeMgr(self, recType):
recTypeMgr = None
if recType in self.__recTypeDict:
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/GameWorldEvent.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/GameWorldEvent.py
index 621bc11..76e21b4 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/GameWorldEvent.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/GameWorldEvent.py
@@ -190,6 +190,10 @@
#清DBGSTrig
excludeList = [ShareDefine.Def_InitOpenServerTime, ShareDefine.Def_SetOpenServerTime]
DBDataMgr.GetEventTrigMgr().DelAllKey(excludeList)
+ #清榜单
+ DBDataMgr.GetBillboardMgr().DelAllData()
+ #清通用记录
+ DBDataMgr.GetGameRecMgr().DelAllData()
#清家族
DBDataMgr.GetFamilyMgr().DelAllFamily()
#清邮件
--
Gitblit v1.8.0