From 6641154f22dbfafdd14f047f7a2491a9bbeae723 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 27 十月 2025 14:10:43 +0800
Subject: [PATCH] 16 卡牌服务端(优化榜单,增加更新时间字段;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DB/DBStruct.py | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DB/DBStruct.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DB/DBStruct.py
index 21833b2..3696a03 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DB/DBStruct.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DB/DBStruct.py
@@ -907,6 +907,7 @@
('ContribDay', ctypes.c_ulong),
('DonateCntTotal', ctypes.c_ulong),
('DonateCntDay', ctypes.c_ubyte),
+ ('TitleID', ctypes.c_ulong),
('ADOResult', ctypes.c_ulong),
]
@@ -942,6 +943,7 @@
self.ContribDay, pos = CommFunc.ReadDWORD(buf, pos)
self.DonateCntTotal, pos = CommFunc.ReadDWORD(buf, pos)
self.DonateCntDay, pos = CommFunc.ReadBYTE(buf, pos)
+ self.TitleID, pos = CommFunc.ReadDWORD(buf, pos)
return self.getLength()
@@ -973,6 +975,7 @@
ContribDay = %s,
DonateCntTotal = %s,
DonateCntDay = %s,
+ TitleID = %s,
ADOResult = %s,
'''%(
self.PlayerID,
@@ -993,6 +996,7 @@
self.ContribDay,
self.DonateCntTotal,
self.DonateCntDay,
+ self.TitleID,
self.ADOResult,
)
return output
@@ -1764,6 +1768,7 @@
('CmpValue', ctypes.c_ulong),
('CmpValue2', ctypes.c_ulong),
('CmpValue3', ctypes.c_ulong),
+ ('Time', ctypes.c_ulong),
('DataLen', ctypes.c_ushort),
('UserData', ctypes.c_char_p),
('ADOResult', ctypes.c_ulong),
@@ -1793,6 +1798,7 @@
self.CmpValue = 0
self.CmpValue2 = 0
self.CmpValue3 = 0
+ self.Time = 0
self.DataLen = 0
self.UserData = ''
@@ -1821,6 +1827,7 @@
self.CmpValue, pos = CommFunc.ReadDWORD(buf, pos)
self.CmpValue2, pos = CommFunc.ReadDWORD(buf, pos)
self.CmpValue3, pos = CommFunc.ReadDWORD(buf, pos)
+ self.Time, pos = CommFunc.ReadDWORD(buf, pos)
self.DataLen, pos = CommFunc.ReadWORD(buf, pos)
tmp, pos = CommFunc.ReadString(buf, pos, self.DataLen)
self.UserData = ctypes.c_char_p(tmp)
@@ -1847,6 +1854,7 @@
buf = CommFunc.WriteDWORD(buf, self.CmpValue)
buf = CommFunc.WriteDWORD(buf, self.CmpValue2)
buf = CommFunc.WriteDWORD(buf, self.CmpValue3)
+ buf = CommFunc.WriteDWORD(buf, self.Time)
buf = CommFunc.WriteWORD(buf, self.DataLen)
buf = CommFunc.WriteString(buf, self.DataLen, self.UserData)
return buf
@@ -1861,6 +1869,7 @@
length += sizeof(ctypes.c_char) * 33
length += sizeof(ctypes.c_char) * 65
length += sizeof(ctypes.c_ubyte)
+ length += sizeof(ctypes.c_ulong)
length += sizeof(ctypes.c_ulong)
length += sizeof(ctypes.c_ulong)
length += sizeof(ctypes.c_ulong)
@@ -1897,6 +1906,7 @@
CmpValue = %s,
CmpValue2 = %s,
CmpValue3 = %s,
+ Time = %s,
DataLen = %s,
UserData = %s,
ADOResult = %s,
@@ -1920,6 +1930,7 @@
self.CmpValue,
self.CmpValue2,
self.CmpValue3,
+ self.Time,
self.DataLen,
self.UserData,
self.ADOResult,
--
Gitblit v1.8.0