From 7f31959e06512420e163e1919f180a4648c73617 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 30 Jul 2024 19:52:10 +0800 Subject: [PATCH] 1 --- server/gameserver/boxdrop.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/gameserver/boxdrop.cc b/server/gameserver/boxdrop.cc index c32130b2..930063fb 100644 --- a/server/gameserver/boxdrop.cc +++ b/server/gameserver/boxdrop.cc @@ -73,11 +73,10 @@ void BoxDrop::RequestAllocBoxNum() { std::string url; JsonDataMgr::Instance()->GetApiUrl(url); - int nowtime = f8::App::Instance()->GetNowTime(); auto url_params = a8::MutableXObject::CreateObject(); url_params->SetVal("c", "Battle"); url_params->SetVal("a", "requestAllocBoxNum"); - url_params->SetVal("timestamp", a8::XValue(nowtime)); + url_params->SetVal("room_uuid", room_->GetRoomUuid()); HttpProxy::Instance()->HttpGet ( [] @@ -123,6 +122,7 @@ void BoxDrop::RequestReturnBoxNum() auto url_params = a8::MutableXObject::CreateObject(); url_params->SetVal("c", "Battle"); url_params->SetVal("a", "requestReturnBoxNum"); + url_params->SetVal("room_uuid", room_->GetRoomUuid()); HttpProxy::Instance()->HttpGet ( []