获取活动开启时间

back_recharge
DESKTOP-98AVA47\Administrator 2021-12-23 19:01:57 +08:00 committed by duhui
parent 6e3b1b5be9
commit 17242edf01
1 changed files with 7 additions and 0 deletions

View File

@ -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<Integer, ActivityMission> 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;