1
This commit is contained in:
parent
89dbb3a3d0
commit
b68eff5b5e
@ -129,7 +129,7 @@ std::string HttpProxy::HttpGet(
|
|||||||
std::string HttpProxy::HttpPost(
|
std::string HttpProxy::HttpPost(
|
||||||
f8::HttpProxyCb cb,
|
f8::HttpProxyCb cb,
|
||||||
const char* url,
|
const char* url,
|
||||||
a8::XObject url_params,
|
std::shared_ptr<a8::MutableXObject> url_params,
|
||||||
const std::string& content
|
const std::string& content
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@ -140,7 +140,7 @@ std::string HttpProxy::HttpPost(
|
|||||||
request->req_id = CreateRequestId();
|
request->req_id = CreateRequestId();
|
||||||
request->cb = cb;
|
request->cb = cb;
|
||||||
request->url = url;
|
request->url = url;
|
||||||
request->url_params = url_params;
|
request->url_params = *url_params;
|
||||||
request->add_tick = a8::XGetTickCount();
|
request->add_tick = a8::XGetTickCount();
|
||||||
if (request_hash_.find(request->req_id) != request_hash_.end()) {
|
if (request_hash_.find(request->req_id) != request_hash_.end()) {
|
||||||
abort();
|
abort();
|
||||||
@ -151,7 +151,7 @@ std::string HttpProxy::HttpPost(
|
|||||||
auto proxy_url_params = a8::MutableXObject::CreateObject();
|
auto proxy_url_params = a8::MutableXObject::CreateObject();
|
||||||
proxy_url_params->SetVal("seq_id", request->req_id);
|
proxy_url_params->SetVal("seq_id", request->req_id);
|
||||||
proxy_url_params->SetVal("target_url", std::string(url));
|
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",
|
proxy_url_params->SetVal("cb_url", a8::Format("http://%s:%d/webapp/index.php?c=Proxy&a=callback",
|
||||||
{
|
{
|
||||||
JsonDataMgr::Instance()->ip,
|
JsonDataMgr::Instance()->ip,
|
||||||
|
@ -25,7 +25,7 @@ class HttpProxy : public a8::Singleton<HttpProxy>
|
|||||||
std::string HttpPost(
|
std::string HttpPost(
|
||||||
f8::HttpProxyCb cb,
|
f8::HttpProxyCb cb,
|
||||||
const char* url,
|
const char* url,
|
||||||
a8::XObject url_params,
|
std::shared_ptr<a8::MutableXObject> url_params,
|
||||||
const std::string& content
|
const std::string& content
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -2266,7 +2266,7 @@ void Room::TryMobaReport(int try_count)
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
url.c_str(),
|
url.c_str(),
|
||||||
*params.get(),
|
params,
|
||||||
content
|
content
|
||||||
);
|
);
|
||||||
#ifdef MYDEBUG
|
#ifdef MYDEBUG
|
||||||
@ -4144,7 +4144,7 @@ void Room::TryRoomReport(int try_count)
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
url.c_str(),
|
url.c_str(),
|
||||||
*params.get(),
|
params,
|
||||||
content
|
content
|
||||||
);
|
);
|
||||||
GetBoxDrop()->RequestReturnBoxNum();
|
GetBoxDrop()->RequestReturnBoxNum();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user