跨服获取服务器列表优化
parent
fb1d8980a5
commit
31fd441ae8
|
@ -6,6 +6,7 @@ import com.ljsd.jieling.db.mongo.MongoUtil;
|
||||||
import com.ljsd.jieling.db.redis.RedisKey;
|
import com.ljsd.jieling.db.redis.RedisKey;
|
||||||
import com.ljsd.jieling.db.redis.RedisUtil;
|
import com.ljsd.jieling.db.redis.RedisUtil;
|
||||||
import com.ljsd.jieling.logic.dao.ServerConfig;
|
import com.ljsd.jieling.logic.dao.ServerConfig;
|
||||||
|
import com.ljsd.jieling.logic.family.CrossDeathPathLogic;
|
||||||
import com.ljsd.jieling.network.NetManager;
|
import com.ljsd.jieling.network.NetManager;
|
||||||
import com.ljsd.jieling.util.ConfigurableApplicationContextManager;
|
import com.ljsd.jieling.util.ConfigurableApplicationContextManager;
|
||||||
import config.SGameSetting;
|
import config.SGameSetting;
|
||||||
|
@ -59,6 +60,7 @@ public class GameApplication {
|
||||||
GameLogicService.getInstance().onStart();
|
GameLogicService.getInstance().onStart();
|
||||||
NetManager.getInstance().init();
|
NetManager.getInstance().init();
|
||||||
SkyEyeService.getInstance().onStart();
|
SkyEyeService.getInstance().onStart();
|
||||||
|
CrossDeathPathLogic.getInstance().serverInit();
|
||||||
//控制台gm
|
//控制台gm
|
||||||
Scanner sc = new Scanner(System.in);
|
Scanner sc = new Scanner(System.in);
|
||||||
while(sc.hasNext())
|
while(sc.hasNext())
|
||||||
|
|
|
@ -137,11 +137,14 @@ public class CrossDeathPathLogic {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public String getServerName(int serverId){
|
public String getServerName(int serverId){
|
||||||
|
String name = String.valueOf(serverId);
|
||||||
CServerInfo cServerInfo = cServerInfoMap.get(serverId);
|
CServerInfo cServerInfo = cServerInfoMap.get(serverId);
|
||||||
if(cServerInfo==null){
|
if(cServerInfo==null){
|
||||||
return String.valueOf(serverId);
|
serverInit();
|
||||||
|
cServerInfo = cServerInfoMap.get(serverId);
|
||||||
}
|
}
|
||||||
return cServerInfo.getName();
|
name = cServerInfo!=null?cServerInfo.getName():name;
|
||||||
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getServerNameByDeathPath(int serverId){
|
public String getServerNameByDeathPath(int serverId){
|
||||||
|
|
|
@ -218,8 +218,6 @@ public class MinuteTask extends Thread {
|
||||||
});
|
});
|
||||||
ProtocolsManager.getInstance().updateAyncWorker(ayyncWorker);
|
ProtocolsManager.getInstance().updateAyncWorker(ayyncWorker);
|
||||||
}
|
}
|
||||||
// 跨服服务器刷新
|
|
||||||
CrossDeathPathLogic.getInstance().serverInit();
|
|
||||||
// LOGGER.info("{}更新公会援助完毕",guildInfoEntry.getValue().getName());
|
// LOGGER.info("{}更新公会援助完毕",guildInfoEntry.getValue().getName());
|
||||||
|
|
||||||
// //统一清除
|
// //统一清除
|
||||||
|
|
Loading…
Reference in New Issue