battleevent instance_id 추가
This commit is contained in:
@@ -47,6 +47,8 @@ public class BattleEvent {
|
||||
private Integer configId;
|
||||
@JsonProperty("reward_group_id")
|
||||
private Integer rewardGroupId;
|
||||
@JsonProperty("instance_id")
|
||||
private Integer instanceId;
|
||||
|
||||
private boolean deleted;
|
||||
|
||||
|
||||
@@ -47,6 +47,8 @@ public class BattleEventRequest {
|
||||
private Integer configId;
|
||||
@JsonProperty("reward_group_id")
|
||||
private Integer rewardGroupId;
|
||||
@JsonProperty("instance_id")
|
||||
private Integer instanceId;
|
||||
|
||||
@JsonProperty("create_by")
|
||||
private Long createBy;
|
||||
|
||||
@@ -117,6 +117,7 @@ public class BattleEventService {
|
||||
LocalDateTime end_dt = start_dt.plusHours(12);
|
||||
battleEventRequest.setEventEndDt(end_dt);
|
||||
}
|
||||
battleEventRequest.setInstanceId(CommonConstants.BATTLE_INSTANCE_ID); //고정값으로 넣고 추후 맵정보가 늘어나면 선택하는 걸로
|
||||
|
||||
int operation_time = calcEndTime(battleEventRequest);
|
||||
battleEventRequest.setEventOperationTime(operation_time);
|
||||
|
||||
@@ -4,6 +4,7 @@ public class CommonConstants {
|
||||
public static final String TRUE = "True";
|
||||
public static final String FALSE = "False";
|
||||
public static final String NONE = "None";
|
||||
public static final int BATTLE_SERVER_WAIT_TIME = 600; // (seconds) 이벤트 홍보시간이 300초인데 여유있게 처리하게 하기위해 600으로 준다.
|
||||
public static final String SCHEDULE = "Schedule";
|
||||
public static final int BATTLE_SERVER_WAIT_TIME = 600; // (seconds) 이벤트 홍보시간이 300초인데 여유있게 처리하게 하기위해 600으로 준다.
|
||||
public static final int BATTLE_INSTANCE_ID = 1017007;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user