4986 【主干】【BT2】测试外网数据限时礼包更新后 显示异常(修复活动封包顺序问题)
1个文件已修改
4 ■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFlashGiftbag.py 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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):