登录检测已开启的活动,商店是否开启

back_recharge
jiahuiwen 2021-12-13 11:30:53 +08:00
parent 426b23d23f
commit a19352578e
1 changed files with 8 additions and 0 deletions

View File

@ -402,6 +402,14 @@ public class ActivityLogic implements IEventHandler{
}
}
}
// 登录检测已开启的活动,商店是否开启
int[] shopId = sGlobalActivity.getShopId();
if (shopId != null && shopId.length > 0) {
boolean b = user.getStoreManager().getStoreInfoMap().containsKey(shopId[0]);
if (!b) {
LOGGER.info("checkActivityOfUser uid={} activityId={} reopen shopId={}", user.getId(), openActivityId, shopId[0]);
Poster.getPoster().dispatchEvent(new ActivityStateChangeEvent(user.getId(),openActivityId,1));
}
continue;
}
initAllActivityMission(activityManager.getActivityMissionMap(),openActivityId);