From dad2b61a5052eb92d03d378be3265ccd1d96d638 Mon Sep 17 00:00:00 2001 From: thejinchao Date: Fri, 12 Dec 2025 12:01:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=BD=E6=95=B0=E6=9B=B4=E6=94=B9=E6=88=90?= =?UTF-8?q?=E6=AD=A3=E7=A1=AE=E7=9A=84=E5=90=8D=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ace_test/aServer/GameServer.cpp | 2 +- ace_test/aServer/NetbarInterface.cpp | 4 ++-- ace_test/aServer/NetbarInterface.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ace_test/aServer/GameServer.cpp b/ace_test/aServer/GameServer.cpp index 8b06058..2480005 100644 --- a/ace_test/aServer/GameServer.cpp +++ b/ace_test/aServer/GameServer.cpp @@ -295,5 +295,5 @@ void GameServer::onNetbarRequest(cyclone::TcpConnectionPtr conn, Game::NetbaraSt GameClient* client = getClient(conn->get_id()); assert(client); - NetbarInterface::onReceiveNetbarReportRequest(client, request); + NetbarInterface::onReceiveNetbarStatusRequest(client, request); } diff --git a/ace_test/aServer/NetbarInterface.cpp b/ace_test/aServer/NetbarInterface.cpp index f766f83..26e0eac 100644 --- a/ace_test/aServer/NetbarInterface.cpp +++ b/ace_test/aServer/NetbarInterface.cpp @@ -65,7 +65,7 @@ std::string buildRequestUrl() return "http://api-test.netbar.itrpc.woa.com/netbar.cafe.rewards.rewards/Rewards"; } -bool NetbarInterface::onReceiveNetbarReportRequest(GameClient* client, Game::NetbaraStatusReq* request) +bool NetbarInterface::onReceiveNetbarStatusRequest(GameClient* client, Game::NetbaraStatusReq* request) { std::string requestBody = buildRequestJson(client, request); std::string requestUrl = buildRequestUrl(); @@ -79,7 +79,7 @@ bool NetbarInterface::onReceiveNetbarReportRequest(GameClient* client, Game::Net if(retCode != 0) { - CY_LOG(cyclone::L_ERROR, "NetbarInterface::onReceiveNetbarReportRequest curlRequest failed, retCode=%d", retCode); + CY_LOG(cyclone::L_ERROR, "NetbarInterface::onReceiveNetbarStatusRequest curlRequest failed, retCode=%d", retCode); char szTemp[256] = { 0 }; snprintf(szTemp, 256, "Curl request failed, retCode=%d", retCode); diff --git a/ace_test/aServer/NetbarInterface.h b/ace_test/aServer/NetbarInterface.h index 6907301..281921d 100644 --- a/ace_test/aServer/NetbarInterface.h +++ b/ace_test/aServer/NetbarInterface.h @@ -9,5 +9,5 @@ namespace Game class NetbarInterface { public: - static bool onReceiveNetbarReportRequest(GameClient* client, Game::NetbaraStatusReq* request); + static bool onReceiveNetbarStatusRequest(GameClient* client, Game::NetbaraStatusReq* request); };