From 95ed566251586a404ed667336cc31dd318c773bd Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 15 十一月 2024 16:21:05 +0800 Subject: [PATCH] 10311 【bt】聊天限制(A110增加同步真实充值信息) --- ServerPython/CoreServerGroup/GameServer/Script/ChPyNetSendPack.py | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetSendPack.py b/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetSendPack.py index 491dae1..c7bdbc6 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetSendPack.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetSendPack.py @@ -19182,6 +19182,9 @@ class tagMCCoinToGoldCountInfo(Structure): Head = tagHead() + RealFirstTime = 0 #(DWORD RealFirstTime)// 首次真实充值时间戳 + RealToday = 0 #(DWORD RealToday)// 今日真实充值coin + RealTotal = 0 #(DWORD RealTotal)// 累计真实充值coin RecordCount = 0 #(WORD RecordCount) CTGCountInfoList = list() #(vector<tagMCCoinToGoldCount> CTGCountInfoList) data = None @@ -19195,6 +19198,9 @@ def ReadData(self, _lpData, _pos=0, _Len=0): self.Clear() _pos = self.Head.ReadData(_lpData, _pos) + self.RealFirstTime,_pos = CommFunc.ReadDWORD(_lpData, _pos) + self.RealToday,_pos = CommFunc.ReadDWORD(_lpData, _pos) + self.RealTotal,_pos = CommFunc.ReadDWORD(_lpData, _pos) self.RecordCount,_pos = CommFunc.ReadWORD(_lpData, _pos) for i in range(self.RecordCount): temCTGCountInfoList = tagMCCoinToGoldCount() @@ -19207,6 +19213,9 @@ self.Head.Clear() self.Head.Cmd = 0xA1 self.Head.SubCmd = 0x10 + self.RealFirstTime = 0 + self.RealToday = 0 + self.RealTotal = 0 self.RecordCount = 0 self.CTGCountInfoList = list() return @@ -19214,6 +19223,9 @@ def GetLength(self): length = 0 length += self.Head.GetLength() + length += 4 + length += 4 + length += 4 length += 2 for i in range(self.RecordCount): length += self.CTGCountInfoList[i].GetLength() @@ -19223,6 +19235,9 @@ def GetBuffer(self): data = '' data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer()) + data = CommFunc.WriteDWORD(data, self.RealFirstTime) + data = CommFunc.WriteDWORD(data, self.RealToday) + data = CommFunc.WriteDWORD(data, self.RealTotal) data = CommFunc.WriteWORD(data, self.RecordCount) for i in range(self.RecordCount): data = CommFunc.WriteString(data, self.CTGCountInfoList[i].GetLength(), self.CTGCountInfoList[i].GetBuffer()) @@ -19231,11 +19246,17 @@ def OutputString(self): DumpString = ''' Head:%s, + RealFirstTime:%d, + RealToday:%d, + RealTotal:%d, RecordCount:%d, CTGCountInfoList:%s '''\ %( self.Head.OutputString(), + self.RealFirstTime, + self.RealToday, + self.RealTotal, self.RecordCount, "..." ) -- Gitblit v1.8.0