From 6e69f8eea777f05267e377a3835aabc4281c0fd6 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 04 七月 2024 22:40:59 +0800
Subject: [PATCH] 10198 【香港】【越南】【主干】【砍树】【后端】BOSS凭证优化(社交表结构同步;)

---
 ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerActBossTrial.py |    4 +++-
 ServerPython/CoreServerGroup/GameServer/Script/PyGameDataStruct.py          |    4 ++++
 2 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerActBossTrial.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerActBossTrial.py
index 0480bd5..bd6ee23 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerActBossTrial.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerActBossTrial.py
@@ -65,7 +65,9 @@
 
 def __OnEndAward(actNum, ipyData, dayIndex):
     ## 结算奖励
-    cfgID = ipyData.GetCfgID() if ipyData else 0
+    if not ipyData:
+        return
+    cfgID = ipyData.GetCfgID()
     awardState = PlayerDBGSEvent.GetDBGSTrig_ByKey(PlayerDBGSEvent.Def_ActBossTrialAward % actNum)
     if awardState:
         #已经结算过该活动
diff --git a/ServerPython/CoreServerGroup/GameServer/Script/PyGameDataStruct.py b/ServerPython/CoreServerGroup/GameServer/Script/PyGameDataStruct.py
index 8fc29b5..67dbe48 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/PyGameDataStruct.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/PyGameDataStruct.py
@@ -2399,6 +2399,7 @@
         ('RealmLV', ctypes.c_ushort),
         ('OnlineType', ctypes.c_ubyte),
         ('RefCount', ctypes.c_ulong),
+        ('Face', ctypes.c_ulong),
         ('ADOResult', ctypes.c_ulong),
     ]
 
@@ -2423,6 +2424,7 @@
         self.RealmLV, pos = CommFunc.ReadWORD(buf, pos)
         self.OnlineType, pos = CommFunc.ReadBYTE(buf, pos)
         self.RefCount, pos = CommFunc.ReadDWORD(buf, pos)
+        self.Face, pos = CommFunc.ReadDWORD(buf, pos)
         return self.getLength()
 
 
@@ -2443,6 +2445,7 @@
             RealmLV = %s,
             OnlineType = %s,
             RefCount = %s,
+            Face = %s,
             ADOResult = %s,
             '''%(
                 self.PlayerID,
@@ -2452,6 +2455,7 @@
                 self.RealmLV,
                 self.OnlineType,
                 self.RefCount,
+                self.Face,
                 self.ADOResult,
             )
         return output

--
Gitblit v1.8.0