This commit is contained in:
aozhiwei 2024-07-30 17:51:55 +08:00
parent 5d6c65f2a4
commit 89dbb3a3d0
7 changed files with 10 additions and 10 deletions

View File

@ -104,7 +104,7 @@ void BoxDrop::RequestAllocBoxNum()
}
},
url.c_str(),
*url_params
url_params
);
}
@ -149,7 +149,7 @@ void BoxDrop::RequestReturnBoxNum()
}
},
url.c_str(),
*url_params
url_params
);
}
}

View File

@ -64,7 +64,7 @@ void HttpProxy::UnInit()
std::string HttpProxy::HttpGet(
f8::HttpProxyCb cb,
const char* url,
a8::XObject url_params
std::shared_ptr<a8::MutableXObject> url_params
)
{
if (f8::App::Instance()->Terminated()) {
@ -74,7 +74,7 @@ std::string HttpProxy::HttpGet(
request->req_id = CreateRequestId();
request->cb = cb;
request->url = url;
request->url_params = url_params;
request->url_params = *url_params;
request->add_tick = a8::XGetTickCount();
if (request_hash_.find(request->req_id) != request_hash_.end()) {
abort();
@ -85,7 +85,7 @@ std::string HttpProxy::HttpGet(
auto proxy_url_params = a8::MutableXObject::CreateObject();
proxy_url_params->SetVal("seq_id", request->req_id);
proxy_url_params->SetVal("target_url", std::string(url));
proxy_url_params->SetVal("params", url_params.ToJsonStr());
proxy_url_params->SetVal("params", url_params->ToJsonStr());
proxy_url_params->SetVal("cb_url", a8::Format("http://%s:%d/webapp/index.php?c=Proxy&a=callback",
{
JsonDataMgr::Instance()->ip,

View File

@ -20,7 +20,7 @@ class HttpProxy : public a8::Singleton<HttpProxy>
std::string HttpGet(
f8::HttpProxyCb cb,
const char* url,
a8::XObject url_params
std::shared_ptr<a8::MutableXObject> url_params
);
std::string HttpPost(
f8::HttpProxyCb cb,

View File

@ -3671,7 +3671,7 @@ void Human::SendPersonalBattleReport()
}
},
url.c_str(),
*params.get()
params
);
}

View File

@ -1428,7 +1428,7 @@ void Player::_CMRevive(f8::MsgHdr* hdr, const cs::CMRevive& msg)
}
},
url.c_str(),
*url_params
url_params
);
}
}

View File

@ -669,7 +669,7 @@ void RoomMgr::SendGetCustomBattleData(std::shared_ptr<cs::CMJoin> join_msg,
}
},
url.c_str(),
*url_params
url_params
);
}
}

View File

@ -269,7 +269,7 @@ void Team::SendTeamBattleReport(Human* sender)
}
},
url.c_str(),
*params.get()
params
);
}