| | |
| | | import CrossActCTGBillboard
|
| | | import CrossRealmMsg
|
| | | import PyGameData
|
| | | import PlayerFB
|
| | | import ChConfig
|
| | |
|
| | | import datetime
|
| | |
| | | if not endDateStr:
|
| | | endDateStr = curDateStr
|
| | | GameWorld.Log(" 结束日期为空,默认每天,今日为: endDateStr=%s" % endDateStr)
|
| | | |
| | | actByWeek = (startDateStr.startswith("W") and endDateStr.startswith("W")) # 按周x开
|
| | | if actByWeek:
|
| | | startDateStr, endDateStr = GameWorld.GetOperationActionDateStr(ipyData)
|
| | | GameWorld.Log(" 星期X转化为日期: %s ~ %s" % (startDateStr, endDateStr))
|
| | |
|
| | | if hasattr(ipyData, "GetStartTimeList") and hasattr(ipyData, "GetEndTimeList"):
|
| | | startHMStrList = ipyData.GetStartTimeList()
|
| | |
| | | continue
|
| | |
|
| | | if state:
|
| | | if dailyActionID in ChConfig.Def_CrossDailyMap:
|
| | | # 开启对应日常地图分区线路
|
| | | __openCrossDailyMap(ChConfig.Def_CrossDailyMap[dailyActionID])
|
| | | |
| | | if dailyActionID == ShareDefine.CrossDailyActionID_YaomoBoss:
|
| | | GameWorld.SendMapServerMsgEx(ShareDefine.Def_Notify_WorldKey_ActionBossRebornSign % dailyActionID, int(time.time()))
|
| | |
|
| | |
| | |
|
| | | return
|
| | |
|
| | | def __openCrossDailyMap(mapID):
|
| | | if mapID not in ChConfig.Def_CrossZoneMapTableName:
|
| | | return
|
| | | zoneTypeName = ChConfig.Def_CrossZoneMapTableName[mapID]
|
| | | ipyDataMgr = IpyGameDataPY.IPY_Data()
|
| | | if zoneTypeName and hasattr(ipyDataMgr, "Get%sCount" % zoneTypeName):
|
| | | realMapInfo = {}
|
| | | for index in range(getattr(ipyDataMgr, "Get%sCount" % zoneTypeName)()):
|
| | | ipyData = getattr(ipyDataMgr, "Get%sByIndex" % zoneTypeName)(index)
|
| | | zoneID = ipyData.GetZoneID()
|
| | | realMapID = ipyData.GetMapID()
|
| | | copyMapID = ipyData.GetCopyMapID()
|
| | | if realMapID not in realMapInfo:
|
| | | realMapInfo[realMapID] = []
|
| | | copyPropertyList = realMapInfo[realMapID]
|
| | | copyPropertyList.append([copyMapID, zoneID])
|
| | | for realMapID, copyPropertyList in realMapInfo.items():
|
| | | PlayerFB.SendMapOpenFBEx(realMapID, copyPropertyList)
|
| | | return
|
| | |
|
| | | def SendMapServerCrossDailyActionState():
|
| | | # 地图启动成功时通知本日进行中的日常活动状态
|
| | |
|