diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index c687d359..ec009f3a 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -7,7 +7,6 @@ #include #include "framework/cpp/utils.h" -#include "framework/cpp/httpclientpool.h" #include "human.h" #include "cs_proto.pb.h" @@ -36,6 +35,7 @@ #include "explosion.h" #include "killmgr.h" #include "tracemgr.h" +#include "httpproxy.h" const int kReviveTimeAdd = 12; const int kSkinNum = 4; @@ -2387,7 +2387,7 @@ void Human::SendBattleReport() } std::string data; params->ToUrlEncodeStr(data); - f8::HttpClientPool::Instance()->HttpGet + HttpProxy::Instance()->HttpGet ( a8::XParams() .SetSender(room->GetRoomUuid()) @@ -2396,8 +2396,7 @@ void Human::SendBattleReport() on_ok, on_error, url.c_str(), - *params, - MAX_SYS_HTTP_NUM + (GetUniId() % MAX_USER_HTTP_NUM) + *params.get() ); }