From 17242edf01ca5077096d310b6bf9a570ef4ce060 Mon Sep 17 00:00:00 2001 From: "DESKTOP-98AVA47\\Administrator" Date: Thu, 23 Dec 2021 19:01:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=B4=BB=E5=8A=A8=E5=BC=80?= =?UTF-8?q?=E5=90=AF=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ljsd/jieling/logic/activity/ActivityLogic.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/serverlogic/src/main/java/com/ljsd/jieling/logic/activity/ActivityLogic.java b/serverlogic/src/main/java/com/ljsd/jieling/logic/activity/ActivityLogic.java index aace5081d..d755bd6ef 100644 --- a/serverlogic/src/main/java/com/ljsd/jieling/logic/activity/ActivityLogic.java +++ b/serverlogic/src/main/java/com/ljsd/jieling/logic/activity/ActivityLogic.java @@ -195,6 +195,7 @@ public class ActivityLogic implements IEventHandler{ // 开服条件判断 boolean open = SGlobalActivity.checkActivityIfOpen(sGlobalActivity.getId(),0,GameApplication.serverConfig.getCacheOpenTime()); if (!open){ + openActivityIds.remove(sGlobalActivity.getId()); continue; } if (endTime != 0 && now > endTime) { @@ -586,6 +587,12 @@ public class ActivityLogic implements IEventHandler{ for (Map.Entry activityState : activityMissionMap.entrySet()) { Integer activityId = activityState.getKey(); ActivityMission activityMission = activityState.getValue(); + + boolean open = SGlobalActivity.checkActivityIfOpen(activityId,user.getPlayerInfoManager().getCreateTime(),GameApplication.serverConfig.getCacheOpenTime()); + if (!open){ + // 开服条件判断 + continue; + } //todo 活动未初始化成功 if (activityMission == null) { continue;