| | |
| | | import GameWorldAverageLv
|
| | | import PlayerFamilyBoss
|
| | | import PlayerHorsePetBoss
|
| | | import CrossActionControl
|
| | | import GameWorldProcess
|
| | | import ChPyNetSendPack
|
| | | import NetPackCommon
|
| | |
| | | if GameWorld.IsCrossServer():
|
| | | # 跨服不处理运营活动
|
| | | return
|
| | | CrossActionControl.SendMapServerCrossActionState()
|
| | |
|
| | | isReload, OperationActionInfo = __GetOperationActionInfo()
|
| | | mapServerInfoDict = OperationActionInfo[OperationAction_MapServerInfo]
|
| | |
| | | activityInfoDict[ShareDefine.ActKey_WorldLVList] = GameWorldAverageLv.GetWorldLVListByTime(startDayDate, (endDayDate - startDayDate).days)
|
| | |
|
| | | if startDayDate <= curDateTime < endDayDate:
|
| | | dayIndex = 0
|
| | | dayIndex = (curDateTime - startDayDate).days
|
| | | actIDDateTime = startDayDate
|
| | | isDayRest = 0 if not hasattr(ipyData, "GetIsDayReset") else ipyData.GetIsDayReset()
|
| | | # 按时段开的默认每天重置
|
| | | if isDayRest or (startHMStrList and endHMStrList):
|
| | | dayIndex = (curDateTime - startDayDate).days
|
| | | actIDDateTime += datetime.timedelta(days=dayIndex)
|
| | | actID = int(time.mktime(actIDDateTime.timetuple())) # 默认取开始时间点的time值作为活动ID
|
| | | activityInfoDict[ShareDefine.ActKey_DayIndex] = dayIndex
|
| | |
| | |
|
| | | if GameWorld.IsCrossServer():
|
| | | # 跨服不处理运营活动
|
| | | CrossActionControl.Dispose_CrossActState(reloadRefresh)
|
| | | return
|
| | |
|
| | | isReload, OperationActionInfo = __GetOperationActionInfo(False) # 这里必须传False
|