From ff3f5bf009b67b85cbde3d823aae998521c2264a Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 13 二月 2026 11:16:54 +0800
Subject: [PATCH] 462 【付费活动】限时冲刺-服务端(修复运营活动时间管理配置服务器ID范围无效bug;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/GameWorldAction.py | 15 ++++-----------
1 files changed, 4 insertions(+), 11 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/GameWorldAction.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/GameWorldAction.py
index 20d4750..e3f212d 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/GameWorldAction.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/GameWorldAction.py
@@ -69,7 +69,7 @@
#maxCustomServerDayMix = IpyGameDataPY.GetFuncCfg("MixServer", 1) # 定制运营活动最大合服天
operationTodayActionDict = {}
PyGameData.g_operationActionDict = {}
- platform = GameWorld.GetPlatform()
+ platform = GameWorld.GetAppID() # 暂时先直接用AppID,废弃平台配置
serverID = GameWorld.GetGameWorld().GetServerID()
ipyDataMgr = IpyGameDataPY.IPY_Data()
curWeekday = curDateTime.weekday() + 1 # 今天星期几, 1代表星期1
@@ -484,21 +484,14 @@
# 排除的服务器组ID列表
if serverIDListExcept:
- isExcept = False
- for serverIDInfo in serverIDListExcept:
- if GameWorld.CheckServerIDInList(serverID, serverIDInfo):
- isExcept = True
- break
- if isExcept:
+ if GameWorld.CheckServerIDInList(serverID, serverIDListExcept):
continue
if not serverIDList:
curServerActIpyDataList.append(ipyData)
else:
- for serverIDInfo in serverIDList:
- if GameWorld.CheckServerIDInList(serverID, serverIDInfo):
- curServerActIpyDataList.append(ipyData)
- break
+ if GameWorld.CheckServerIDInList(serverID, serverIDList):
+ curServerActIpyDataList.append(ipyData)
return curServerActIpyDataList
--
Gitblit v1.8.0