From bfd8fd4b9c4b77451c7e7e4889b7660764ac2a31 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 16 三月 2021 10:03:46 +0800
Subject: [PATCH] 4986 【主干】【BT2】测试外网数据限时礼包更新后 显示异常(修复活动封包顺序问题)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFlashGiftbag.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFlashGiftbag.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFlashGiftbag.py
index 12d19fa..d7ff96b 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFlashGiftbag.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFlashGiftbag.py
@@ -115,12 +115,12 @@
     isReset = False
     if actID != playerActID:
         isReset = True
+        Sync_FlashGiftbagActionInfo(curPlayer, actNum)
         __ResetGiftbagItemBuyCount(curPlayer, giftbagTypeList, actNum)
         PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_FlashGiftbagID % actNum, actID)
         PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_FlashGiftbagMailState % actNum, 0)
         GameWorld.DebugLog("限时礼包重置! actNum=%s,actID=%s,playerActID=%s,state=%s,giftbagTypeList=%s" 
                            % (actNum, actID, playerActID, state, giftbagTypeList), playerID)
-        Sync_FlashGiftbagActionInfo(curPlayer, actNum)
     else:
         GameWorld.DebugLog("限时礼包活动ID不变,不处理!actNum=%s,playerActID=%s" % (actNum, playerActID), curPlayer.GetPlayerID())
         
@@ -133,9 +133,9 @@
             GameWorld.DebugLog("    发送新限时礼包邮件提醒! state=%s,playerMailState=%s" % (state, playerMailState), playerID)
             
     if not isReset and cfgID:
+        Sync_FlashGiftbagActionInfo(curPlayer, actNum)
         if giftbagTypeList:
             SyncFlashGiftbagBuyCount(curPlayer, actNum, giftbagTypeList=giftbagTypeList)
-        Sync_FlashGiftbagActionInfo(curPlayer, actNum)
     return isReset
 
 def __ResetGiftbagItemBuyCount(curPlayer, giftbagTypeList, actNum):

--
Gitblit v1.8.0