From 1e87e6ddf2255611679e86bc09242b93aa492a45 Mon Sep 17 00:00:00 2001 From: azw Date: Mon, 24 Apr 2023 11:24:59 +0000 Subject: [PATCH] 1 --- server/wsproxy/jsondatamgr.cc | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/server/wsproxy/jsondatamgr.cc b/server/wsproxy/jsondatamgr.cc index 526a650..01fd26b 100644 --- a/server/wsproxy/jsondatamgr.cc +++ b/server/wsproxy/jsondatamgr.cc @@ -10,19 +10,12 @@ void JsonDataMgr::Init() { if (!f8::IsOnlineEnv()) { - if (f8::IsTestEnv()) { - work_path_ = a8::Format - ("../../../conf_test/game%d/wsproxy.test", - { - GAME_ID, - }); - } else { - work_path_ = a8::Format - ("../../../conf_test/game%d/wsproxy.dev", - { - GAME_ID - }); - } + work_path_ = a8::Format + ("../../../conf_test/game%d/%s", + { + GAME_ID, + f8::IsTestEnv() ? "wsproxy.test" : "wsproxy.dev" + }); } std::string wsproxyserver_cluster_json_file;