SGlobalSystemConfig中ifopen开关不好使
parent
aef4398c40
commit
58e6af7f72
|
@ -304,6 +304,7 @@ public class GlobalDataManaager implements IManager {
|
|||
|
||||
public void getTimeOfControl(ISession session){
|
||||
MessageUtil.sendMessage(session,1, MessageTypeProto.MessageType.GET_FUNCTIONOFTIME_RESPONSE_VALUE,getFunctionOfTimeResponse,true);
|
||||
|
||||
}
|
||||
|
||||
private void updateGetFunctionOfTimeResponse(){
|
||||
|
@ -321,6 +322,15 @@ public class GlobalDataManaager implements IManager {
|
|||
long timeOpenOfThis =seasonOpenLong;
|
||||
long timeCloseOfThis =seasonEndLong;
|
||||
if(seasonInterval == 0){
|
||||
int[]limitDay = sGlobalSystemConfig.getIfOpen();
|
||||
if(limitDay != null && limitDay.length>0){
|
||||
if( limitDay[0] == 2 ){
|
||||
long day = TimeUtils.getGapDaysByTwoTime(GameApplication.serverConfig.getOpenTime(),TimeUtils.getTimeStamp2(TimeUtils.now()))+1;
|
||||
if(day < limitDay[1]){
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
timeOpenOfThis = systemOpenLong;
|
||||
timeCloseOfThis = systemEndLong;
|
||||
}else{
|
||||
|
|
Loading…
Reference in New Issue