函数更改成正确的名字

This commit is contained in:
2025-12-12 12:01:19 +08:00
parent ae5479b583
commit dad2b61a50
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -295,5 +295,5 @@ void GameServer::onNetbarRequest(cyclone::TcpConnectionPtr conn, Game::NetbaraSt
GameClient* client = getClient(conn->get_id()); GameClient* client = getClient(conn->get_id());
assert(client); assert(client);
NetbarInterface::onReceiveNetbarReportRequest(client, request); NetbarInterface::onReceiveNetbarStatusRequest(client, request);
} }
+2 -2
View File
@@ -65,7 +65,7 @@ std::string buildRequestUrl()
return "http://api-test.netbar.itrpc.woa.com/netbar.cafe.rewards.rewards/Rewards"; 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 requestBody = buildRequestJson(client, request);
std::string requestUrl = buildRequestUrl(); std::string requestUrl = buildRequestUrl();
@@ -79,7 +79,7 @@ bool NetbarInterface::onReceiveNetbarReportRequest(GameClient* client, Game::Net
if(retCode != 0) 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 }; char szTemp[256] = { 0 };
snprintf(szTemp, 256, "Curl request failed, retCode=%d", retCode); snprintf(szTemp, 256, "Curl request failed, retCode=%d", retCode);
+1 -1
View File
@@ -9,5 +9,5 @@ namespace Game
class NetbarInterface class NetbarInterface
{ {
public: public:
static bool onReceiveNetbarReportRequest(GameClient* client, Game::NetbaraStatusReq* request); static bool onReceiveNetbarStatusRequest(GameClient* client, Game::NetbaraStatusReq* request);
}; };