This commit is contained in:
aozhiwei 2019-12-13 14:35:31 +08:00
parent ab595fbafb
commit 367d175be4

View File

@ -36,29 +36,29 @@ void JsonDataMgr::Init()
wsproxyserver_cluster_json_file = a8::Format("%s/node%d/game%d.wsproxy.cluster.json", wsproxyserver_cluster_json_file = a8::Format("%s/node%d/game%d.wsproxy.cluster.json",
{ {
work_path_, work_path_,
GAME_ID,
App::Instance()->node_id, App::Instance()->node_id,
GAME_ID GAME_ID
}); });
masterserver_cluster_json_file = a8::Format("%s/node%d/game%d.masterserver.cluster.json", masterserver_cluster_json_file = a8::Format("%s/node%d/game%d.masterserver.cluster.json",
{ {
work_path_, work_path_,
GAME_ID,
App::Instance()->node_id, App::Instance()->node_id,
GAME_ID GAME_ID
}); });
routing_tables_json_file = a8::Format("%s/routing_tables.json", routing_tables_json_file = a8::Format("%s/routing_tables.json",
{ {
GAME_ID work_path_
}); });
#else #else
std::string targetserver_cluster_json_file; std::string targetserver_cluster_json_file;
wsproxyserver_cluster_json_file = a8::Format("%s/game%d.wsproxy.cluster.json", wsproxyserver_cluster_json_file = a8::Format("%s/game%d.wsproxy.cluster.json",
{ {
work_path_,
GAME_ID GAME_ID
}); });
targetserver_cluster_json_file = a8::Format("%s/game%d.gameserver.cluster.json", targetserver_cluster_json_file = a8::Format("%s/game%d.gameserver.cluster.json",
{ {
work_path_,
GAME_ID GAME_ID
}); });
#endif #endif