From 505624324cbcd11b44f0db3036fca1ffa562f3b7 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期三, 16 六月 2021 18:29:53 +0800 Subject: [PATCH] 8983 【港台】【BT2】【港台-1.100.7】【BT2-1.100.1】循环相关的活动配置优化(周循环支持配置开始循环日期及结束循环日期,格式: W1|开启日期 或 W7|结束日期) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerWishingWell.py | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerWishingWell.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerWishingWell.py index 663a38f..b78494b 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerWishingWell.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerWishingWell.py @@ -377,11 +377,11 @@ actIpyData = IpyGameDataPY.GetIpyGameData("ActWishingWell", cfgID) if not actIpyData: return - openServerDay = GameWorld.GetGameWorld().GetGameWorldDictByKey(ShareDefine.Def_Notify_WorldKey_ServerDay) + 1 + startDateStr, endDateStr = GameWorld.GetOperationActionDateStr(actIpyData) actInfo = ChPyNetSendPack.tagMCActWishingWellInfo() actInfo.Clear() - actInfo.StartDate = GameWorld.GetOperationActionDateStr(actIpyData.GetStartDate(), openServerDay) - actInfo.EndtDate = GameWorld.GetOperationActionDateStr(actIpyData.GetEndDate(), openServerDay) + actInfo.StartDate = startDateStr + actInfo.EndtDate = endDateStr actInfo.IsDayReset = actIpyData.GetIsDayReset() actInfo.ResetType = actIpyData.GetResetType() actInfo.LimitLV = actIpyData.GetLVLimit() @@ -410,8 +410,7 @@ cfgID = actBossRebornInfo.get(ShareDefine.ActKey_CfgID, 0) actIpyData = IpyGameDataPY.GetIpyGameData("ActWishingWell", cfgID) if actIpyData: - openServerDay = GameWorld.GetGameWorld().GetGameWorldDictByKey(ShareDefine.Def_Notify_WorldKey_ServerDay) + 1 - startDate = GameWorld.GetOperationActionDateStr(actIpyData.GetStartDate(), openServerDay) + startDate, _ = GameWorld.GetOperationActionDateStr(actIpyData) resetType = actIpyData.GetResetType() # 重置类型,0-0点重置;1-5点重置 if resetType == 1: -- Gitblit v1.8.0