From 07d1d607ef08d0e455064a0cb30f7c623cf32085 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 26 二月 2019 10:53:14 +0800
Subject: [PATCH] 6250 【后端】【2.0】拍卖行开发单(封包)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py |  114 ++++++++++++++++++++++++++++----------------------------
 1 files changed, 57 insertions(+), 57 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py
index f1b67ab..922c083 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py
@@ -7692,7 +7692,8 @@
     BidderPrice = 0    #(WORD BidderPrice)//竞拍玩家出价
     UserDataLen = 0    #(WORD UserDataLen)
     UserData = ""    #(String UserData)//自定义数据
-    CanGetMoney = 0    #(BYTE CanGetMoney)//可否获得收益
+    FamilyPlayerIDLen = 0    #(WORD FamilyPlayerIDLen)
+    FamilyPlayerIDInfo = ""    #(String FamilyPlayerIDInfo)//可获得收益的仙盟玩家ID信息
     AuctionType = 0    #(BYTE AuctionType)//拍品类型,0-全服拍品,1-仙盟拍品
     data = None
 
@@ -7710,7 +7711,8 @@
         self.BidderPrice,_pos = CommFunc.ReadWORD(_lpData, _pos)
         self.UserDataLen,_pos = CommFunc.ReadWORD(_lpData, _pos)
         self.UserData,_pos = CommFunc.ReadString(_lpData, _pos,self.UserDataLen)
-        self.CanGetMoney,_pos = CommFunc.ReadBYTE(_lpData, _pos)
+        self.FamilyPlayerIDLen,_pos = CommFunc.ReadWORD(_lpData, _pos)
+        self.FamilyPlayerIDInfo,_pos = CommFunc.ReadString(_lpData, _pos,self.FamilyPlayerIDLen)
         self.AuctionType,_pos = CommFunc.ReadBYTE(_lpData, _pos)
         return _pos
 
@@ -7723,7 +7725,8 @@
         self.BidderPrice = 0
         self.UserDataLen = 0
         self.UserData = ""
-        self.CanGetMoney = 0
+        self.FamilyPlayerIDLen = 0
+        self.FamilyPlayerIDInfo = ""
         self.AuctionType = 0
         return
 
@@ -7737,7 +7740,8 @@
         length += 2
         length += 2
         length += len(self.UserData)
-        length += 1
+        length += 2
+        length += len(self.FamilyPlayerIDInfo)
         length += 1
 
         return length
@@ -7752,7 +7756,8 @@
         data = CommFunc.WriteWORD(data, self.BidderPrice)
         data = CommFunc.WriteWORD(data, self.UserDataLen)
         data = CommFunc.WriteString(data, self.UserDataLen, self.UserData)
-        data = CommFunc.WriteBYTE(data, self.CanGetMoney)
+        data = CommFunc.WriteWORD(data, self.FamilyPlayerIDLen)
+        data = CommFunc.WriteString(data, self.FamilyPlayerIDLen, self.FamilyPlayerIDInfo)
         data = CommFunc.WriteBYTE(data, self.AuctionType)
         return data
 
@@ -7766,7 +7771,8 @@
                                 BidderPrice:%d,
                                 UserDataLen:%d,
                                 UserData:%s,
-                                CanGetMoney:%d,
+                                FamilyPlayerIDLen:%d,
+                                FamilyPlayerIDInfo:%s,
                                 AuctionType:%d
                                 '''\
                                 %(
@@ -7778,7 +7784,8 @@
                                 self.BidderPrice,
                                 self.UserDataLen,
                                 self.UserData,
-                                self.CanGetMoney,
+                                self.FamilyPlayerIDLen,
+                                self.FamilyPlayerIDInfo,
                                 self.AuctionType
                                 )
         return DumpString
@@ -8012,9 +8019,11 @@
 class  tagGCPlayerAuctionRecord(Structure):
     ItemGUID = ""    #(char ItemGUID[40])
     FamilyID = 0    #(DWORD FamilyID)//有值时为仙盟拍品
-    RecordType = 0    #(BYTE RecordType)//记录类型 0-流拍 1-拍卖成交 2-回收 3-竞价成功 4-竞价失败
+    RecordType = 0    #(BYTE RecordType)//记录类型 0-我的拍品记录 1-仙盟拍品记录 2-我的竞拍记录
+    RecordResult = 0    #(BYTE RecordResult)//记录结果 0-流拍 1-拍卖成交 2-回收 3-竞价成功 4-竞价失败
     RecordTime = ""    #(char RecordTime[19])//记录时间 yyyy-MM-dd hh:mm:ss
-    RecordPrice = 0    #(WORD RecordPrice)//记录价格
+    BidderPrice = 0    #(DWORD BidderPrice)//成交价格
+    BidderName = ""    #(char BidderName[33])//成交玩家名
     ItemID = 0    #(DWORD ItemID)
     ItemCount = 0    #(WORD ItemCount)
     UserDataLen = 0    #(WORD UserDataLen)
@@ -8030,8 +8039,10 @@
         self.ItemGUID,_pos = CommFunc.ReadString(_lpData, _pos,40)
         self.FamilyID,_pos = CommFunc.ReadDWORD(_lpData, _pos)
         self.RecordType,_pos = CommFunc.ReadBYTE(_lpData, _pos)
+        self.RecordResult,_pos = CommFunc.ReadBYTE(_lpData, _pos)
         self.RecordTime,_pos = CommFunc.ReadString(_lpData, _pos,19)
-        self.RecordPrice,_pos = CommFunc.ReadWORD(_lpData, _pos)
+        self.BidderPrice,_pos = CommFunc.ReadDWORD(_lpData, _pos)
+        self.BidderName,_pos = CommFunc.ReadString(_lpData, _pos,33)
         self.ItemID,_pos = CommFunc.ReadDWORD(_lpData, _pos)
         self.ItemCount,_pos = CommFunc.ReadWORD(_lpData, _pos)
         self.UserDataLen,_pos = CommFunc.ReadWORD(_lpData, _pos)
@@ -8042,8 +8053,10 @@
         self.ItemGUID = ""
         self.FamilyID = 0
         self.RecordType = 0
+        self.RecordResult = 0
         self.RecordTime = ""
-        self.RecordPrice = 0
+        self.BidderPrice = 0
+        self.BidderName = ""
         self.ItemID = 0
         self.ItemCount = 0
         self.UserDataLen = 0
@@ -8055,8 +8068,10 @@
         length += 40
         length += 4
         length += 1
+        length += 1
         length += 19
-        length += 2
+        length += 4
+        length += 33
         length += 4
         length += 2
         length += 2
@@ -8069,8 +8084,10 @@
         data = CommFunc.WriteString(data, 40, self.ItemGUID)
         data = CommFunc.WriteDWORD(data, self.FamilyID)
         data = CommFunc.WriteBYTE(data, self.RecordType)
+        data = CommFunc.WriteBYTE(data, self.RecordResult)
         data = CommFunc.WriteString(data, 19, self.RecordTime)
-        data = CommFunc.WriteWORD(data, self.RecordPrice)
+        data = CommFunc.WriteDWORD(data, self.BidderPrice)
+        data = CommFunc.WriteString(data, 33, self.BidderName)
         data = CommFunc.WriteDWORD(data, self.ItemID)
         data = CommFunc.WriteWORD(data, self.ItemCount)
         data = CommFunc.WriteWORD(data, self.UserDataLen)
@@ -8082,8 +8099,10 @@
                                 ItemGUID:%s,
                                 FamilyID:%d,
                                 RecordType:%d,
+                                RecordResult:%d,
                                 RecordTime:%s,
-                                RecordPrice:%d,
+                                BidderPrice:%d,
+                                BidderName:%s,
                                 ItemID:%d,
                                 ItemCount:%d,
                                 UserDataLen:%d,
@@ -8093,8 +8112,10 @@
                                 self.ItemGUID,
                                 self.FamilyID,
                                 self.RecordType,
+                                self.RecordResult,
                                 self.RecordTime,
-                                self.RecordPrice,
+                                self.BidderPrice,
+                                self.BidderName,
                                 self.ItemID,
                                 self.ItemCount,
                                 self.UserDataLen,
@@ -8175,13 +8196,10 @@
 class  tagGCRefreshAuctionItem(Structure):
     Head = tagHead()
     ItemGUID = ""    #(char ItemGUID[40])
-    FamilyID = 0    #(DWORD FamilyID)//有值时为仙盟拍品
-    ItemID = 0    #(DWORD ItemID)
-    ItemCount = 0    #(WORD ItemCount)
-    AddTime = ""    #(char AddTime[19])//上架时间 yyyy-MM-dd hh:mm:ss
-    BidderPrice = 0    #(WORD BidderPrice)//竞拍玩家出价
-    UserDataLen = 0    #(WORD UserDataLen)
-    UserData = ""    #(String UserData)//自定义数据
+    AuctionType = 0    #(BYTE AuctionType)//拍品类型,0-全服拍品,1-仙盟拍品
+    AddTime = ""    #(char AddTime[19])//上架时间
+    BidderID = 0    #(DWORD BidderID)//最高竞拍玩家ID,也就是当前最高竞价玩家ID    
+    BidderPrice = 0    #(DWORD BidderPrice)//最高竞拍价格
     data = None
 
     def __init__(self):
@@ -8194,13 +8212,10 @@
         self.Clear()
         _pos = self.Head.ReadData(_lpData, _pos)
         self.ItemGUID,_pos = CommFunc.ReadString(_lpData, _pos,40)
-        self.FamilyID,_pos = CommFunc.ReadDWORD(_lpData, _pos)
-        self.ItemID,_pos = CommFunc.ReadDWORD(_lpData, _pos)
-        self.ItemCount,_pos = CommFunc.ReadWORD(_lpData, _pos)
+        self.AuctionType,_pos = CommFunc.ReadBYTE(_lpData, _pos)
         self.AddTime,_pos = CommFunc.ReadString(_lpData, _pos,19)
-        self.BidderPrice,_pos = CommFunc.ReadWORD(_lpData, _pos)
-        self.UserDataLen,_pos = CommFunc.ReadWORD(_lpData, _pos)
-        self.UserData,_pos = CommFunc.ReadString(_lpData, _pos,self.UserDataLen)
+        self.BidderID,_pos = CommFunc.ReadDWORD(_lpData, _pos)
+        self.BidderPrice,_pos = CommFunc.ReadDWORD(_lpData, _pos)
         return _pos
 
     def Clear(self):
@@ -8209,26 +8224,20 @@
         self.Head.Cmd = 0xB5
         self.Head.SubCmd = 0x08
         self.ItemGUID = ""
-        self.FamilyID = 0
-        self.ItemID = 0
-        self.ItemCount = 0
+        self.AuctionType = 0
         self.AddTime = ""
+        self.BidderID = 0
         self.BidderPrice = 0
-        self.UserDataLen = 0
-        self.UserData = ""
         return
 
     def GetLength(self):
         length = 0
         length += self.Head.GetLength()
         length += 40
-        length += 4
-        length += 4
-        length += 2
+        length += 1
         length += 19
-        length += 2
-        length += 2
-        length += len(self.UserData)
+        length += 4
+        length += 4
 
         return length
 
@@ -8236,37 +8245,28 @@
         data = ''
         data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
         data = CommFunc.WriteString(data, 40, self.ItemGUID)
-        data = CommFunc.WriteDWORD(data, self.FamilyID)
-        data = CommFunc.WriteDWORD(data, self.ItemID)
-        data = CommFunc.WriteWORD(data, self.ItemCount)
+        data = CommFunc.WriteBYTE(data, self.AuctionType)
         data = CommFunc.WriteString(data, 19, self.AddTime)
-        data = CommFunc.WriteWORD(data, self.BidderPrice)
-        data = CommFunc.WriteWORD(data, self.UserDataLen)
-        data = CommFunc.WriteString(data, self.UserDataLen, self.UserData)
+        data = CommFunc.WriteDWORD(data, self.BidderID)
+        data = CommFunc.WriteDWORD(data, self.BidderPrice)
         return data
 
     def OutputString(self):
         DumpString = '''
                                 Head:%s,
                                 ItemGUID:%s,
-                                FamilyID:%d,
-                                ItemID:%d,
-                                ItemCount:%d,
+                                AuctionType:%d,
                                 AddTime:%s,
-                                BidderPrice:%d,
-                                UserDataLen:%d,
-                                UserData:%s
+                                BidderID:%d,
+                                BidderPrice:%d
                                 '''\
                                 %(
                                 self.Head.OutputString(),
                                 self.ItemGUID,
-                                self.FamilyID,
-                                self.ItemID,
-                                self.ItemCount,
+                                self.AuctionType,
                                 self.AddTime,
-                                self.BidderPrice,
-                                self.UserDataLen,
-                                self.UserData
+                                self.BidderID,
+                                self.BidderPrice
                                 )
         return DumpString
 

--
Gitblit v1.8.0