礼包活动报错
parent
345b573ddc
commit
c4e252a3ed
|
@ -1455,11 +1455,13 @@ public class ActivityLogic implements IEventHandler{
|
|||
public static boolean checkActivityOpen(User user, int activityType) {
|
||||
ActivityManager activityManager = user.getActivityManager();
|
||||
Map<Integer, ActivityMission> activityMissionMap = activityManager.getActivityMissionMap();
|
||||
Map<Integer, SGlobalActivity> activityMap = SGlobalActivity.getsGlobalActivityMap();
|
||||
for (Map.Entry<Integer, ActivityMission> item : activityMissionMap.entrySet()) {
|
||||
if (item.getKey() == activityType) {
|
||||
if (item.getKey() == activityType && activityMap.get(activityType) != null) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
LOGGER.error("未开启或者活动表已删除的活动id:{}",activityType);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue