新增一直开活动类型6 - 青龙秘宝
parent
303f32e25c
commit
f88b520d0f
|
@ -177,6 +177,13 @@ public class ActivityLogic implements IEventHandler{
|
|||
if(sGlobalActivity.getType() == ActivityType.DAILY_PREFERENTIAL_GIFT){
|
||||
continue;
|
||||
}
|
||||
if(sGlobalActivity.getType() == ActivityType.OPEN_TYPE_LONG &&!openActivityIds.contains(sGlobalActivity.getId())){
|
||||
openActivityIds.add(sGlobalActivity.getId());
|
||||
LOGGER.info("永久开活动-新青龙秘宝");
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
long startTime = ToolsUtil.getTimeLong(sGlobalActivity.getStartTimeLong(),sGlobalActivity.getEndTimeLong(),sGlobalActivity.getTime(),0, 1);
|
||||
long endTime = ToolsUtil.getTimeLong(sGlobalActivity.getStartTimeLong(),sGlobalActivity.getEndTimeLong(),sGlobalActivity.getTime(),0, 2);
|
||||
if (now < startTime) {
|
||||
|
|
|
@ -13,7 +13,7 @@ public interface ActivityType {
|
|||
int OPEN_TYPE_SERVER = 3; // 活动开启类型:开服时间
|
||||
|
||||
int OPEN_TYPE_MONTHS = 5 ; // 活动开启类型:开服自然月
|
||||
|
||||
int OPEN_TYPE_LONG = 6; // 活动开启类型:一直开启
|
||||
|
||||
|
||||
int WILL_TAKE = 0; //未领取
|
||||
|
|
|
@ -39,6 +39,9 @@ public class ToolsUtil {
|
|||
}
|
||||
}
|
||||
break;
|
||||
case ActivityType.OPEN_TYPE_LONG:
|
||||
startTime = -1;
|
||||
break;
|
||||
default:break;
|
||||
}
|
||||
return startTime;
|
||||
|
|
Loading…
Reference in New Issue