This commit is contained in:
aozhiwei 2023-06-18 14:57:53 +08:00
parent 7f0d1ebfbb
commit 92c7f65686

View File

@ -26,9 +26,10 @@ void JsonDataMgr::Init()
std::string setting_json_file;
std::string httpproxy_json_file;
gameserver_cluster_json_file = a8::Format("%s/node%d/game%d.gameserver.cluster.json",
gameserver_cluster_json_file = a8::Format("%s/zone%d/node%d/game%d.gameserver.cluster.json",
{
work_path_,
App::Instance()->zone_id,
App::Instance()->node_id,
GAME_ID
});
@ -98,9 +99,10 @@ std::shared_ptr<a8::XObject> JsonDataMgr::GetMasterServerClusterConf()
void JsonDataMgr::Reload()
{
std::string masterserver_cluster_json_file;
masterserver_cluster_json_file = a8::Format("%s/node%d/game%d.masterserver.cluster.json",
masterserver_cluster_json_file = a8::Format("%s/zone%d/node%d/game%d.masterserver.cluster.json",
{
work_path_,
App::Instance()->zone_id,
App::Instance()->node_id,
GAME_ID
});