4986 【主干】【BT2】测试外网数据限时礼包更新后 显示异常(修复活动封包顺序问题)
| | |
| | | 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())
|
| | |
|
| | |
| | | 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):
|