函数更改成正确的名字
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user