This commit is contained in:
aozhiwei 2023-10-02 09:26:22 +08:00
parent 9628190a47
commit f7962b6851

View File

@ -48,9 +48,11 @@ void JsonDataMgr::Init()
work_path_, work_path_,
}); });
httpproxy_json_file = a8::Format httpproxy_json_file = a8::Format
("%s/httpproxy.cluster.json", ("%s/zone%d/node%d/httpproxy.cluster.json",
{ {
work_path_, work_path_,
App::Instance()->zone_id,
App::Instance()->node_id,
}); });
gameserver_cluster_json_.ReadFromFile(gameserver_cluster_json_file); gameserver_cluster_json_.ReadFromFile(gameserver_cluster_json_file);
masterserver_cluster_json_.ReadFromFile(masterserver_cluster_json_file); masterserver_cluster_json_.ReadFromFile(masterserver_cluster_json_file);