back_recharge
wangyuan 2019-09-10 20:09:30 +08:00
parent d49eb6114b
commit c3dc931ea2
2 changed files with 11 additions and 4 deletions

View File

@ -200,10 +200,17 @@ public class GlobalDataManaager {
checkSystemFunctioIsOpen();
GlobalSystemControl globalSystemControl = MongoUtil.getInstence().getMyMongoTemplate().findById(GameApplication.serverId, GlobalSystemControl.class);
if(globalSystemControl != null){
TimeControllerOfFunction timeControllerOfFunction = globalSystemControl.getTimeControllerOfFunctionMap().get(8);
ArenaLogic.getInstance().updateArenaSeason(timeControllerOfFunction.getTimes());
MapLogic.getInstance().updateEndlessSeason(globalSystemControl.getTimeControllerOfFunctionMap().get(46).getTimes());
MapLogic.setEndlessMapId(getEndleeMapIdByLevel());
if(timeControllerOfFunction != null){
ArenaLogic.getInstance().updateArenaSeason(timeControllerOfFunction.getTimes());
}
if(globalSystemControl.getTimeControllerOfFunctionMap().containsKey(46)){
MapLogic.getInstance().updateEndlessSeason(globalSystemControl.getTimeControllerOfFunctionMap().get(46).getTimes());
MapLogic.setEndlessMapId(getEndleeMapIdByLevel());
}
}
MissionEventDistributor.init();
DataManagerDistributor.init();

View File

@ -27,7 +27,7 @@ public class GuildMyInfo extends MongoBase {
public void clearOfLevelGuild(){
path.clear();
curPos = 257;
curPos = initPos;
setCurPos(curPos);
setPath(new ArrayList<>());
}