From 3afcfad8a40b4638ff069c63a83af90640fa6559 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 11 二月 2026 17:32:52 +0800
Subject: [PATCH] 66 【公会】基础主体-服务端(优化公会互通后某个游戏服在没有公会没有玩家加入跨服公会时下次维护无法成功显示加入跨服分区;优化分区配置检查,异常时不应用配置且发送qq邮件;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DB/StructData/DBGameRec.py | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
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 adf6e3e..86d6656 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
@@ -107,10 +107,10 @@
@param dbData: 实例对应绑定的dbData
@return: 成功返回实例对象,失败返回None
'''
- dataToJson = False
- # 如果需要 dataToJson,可根据 RecType 在这里处理
- if dbData.RecType in []:
- dataToJson = True
+ dataToJson = True
+ # 默认使用 dataToJson,如果不需要的可根据 RecType 在这里处理
+ if dbData.RecType in ShareDefine.UserDataNOJsonRecTypeList:
+ dataToJson = False
recData = GameRecData(dbData, dataToJson)
self.__dataList.append(recData)
@@ -159,6 +159,7 @@
recData = self.InitRecDataInstance(dbData)
return recData
+ def GetDataList(self): return self.__dataList
def GetCount(self): return len(self.__dataList)
def At(self, index):
recData = None
@@ -339,6 +340,8 @@
recTypeIDMgr = GameRecIDMgr(recType, recID)
return recTypeIDMgr
+ def DelDataByType(self, recType): return self.GetRecTypeMgr(recType).DelAllData()
+
# 保存数据 存数据库和realtimebackup
def GetSaveData(self):
savaData = ""
@@ -364,7 +367,7 @@
for _ in xrange(cnt):
dbData = DBStruct.tagDBGameRec()
- dbData.readData(datas, pos, dataslen)
+ pos += dbData.readData(datas, pos, dataslen)
recType = dbData.RecType
recID = dbData.RecID
recTypeIDMgr = self.GetRecTypeIDMgr(recType, recID)
--
Gitblit v1.8.0