This commit is contained in:
aozhiwei 2023-03-10 16:36:28 +08:00
parent bc43fad59a
commit 4d4ed4f0de

View File

@ -1431,18 +1431,18 @@ void Human::SendBattleSettlement()
} }
#endif #endif
long long room_uuid = room->GetRoomUuid(); long long room_uuid = room->GetRoomUuid();
std::string account_id = account_id; std::string tmp_account_id = account_id;
HttpProxy::Instance()->HttpGet HttpProxy::Instance()->HttpGet
( (
[room_uuid, account_id, data] [room_uuid, tmp_account_id, data]
(bool ok, a8::XObject* rsp_obj, f8::HttpContext* ctx) (bool ok, a8::XObject* rsp_obj, f8::HttpContext* ctx)
{ {
Room* room = RoomMgr::Instance()->GetRoomByUuid(room_uuid); Room* room = RoomMgr::Instance()->GetRoomByUuid(room_uuid);
if (!room) { if (!room) {
return; return;
} }
Player* hum = room->GetPlayerByAccountId(account_id); Player* hum = room->GetPlayerByAccountId(tmp_account_id);
if (!hum) { if (!hum) {
return; return;
} }