From 65bff65cf65addc93e099e4a7c1d5a7fdd1c5c89 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 15 Sep 2022 20:06:27 +0800 Subject: [PATCH] 1 --- server/gameserver/human.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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() ); }