1
This commit is contained in:
parent
5d6c65f2a4
commit
89dbb3a3d0
@ -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
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -3671,7 +3671,7 @@ void Human::SendPersonalBattleReport()
|
||||
}
|
||||
},
|
||||
url.c_str(),
|
||||
*params.get()
|
||||
params
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -1428,7 +1428,7 @@ void Player::_CMRevive(f8::MsgHdr* hdr, const cs::CMRevive& msg)
|
||||
}
|
||||
},
|
||||
url.c_str(),
|
||||
*url_params
|
||||
url_params
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -669,7 +669,7 @@ void RoomMgr::SendGetCustomBattleData(std::shared_ptr<cs::CMJoin> join_msg,
|
||||
}
|
||||
},
|
||||
url.c_str(),
|
||||
*url_params
|
||||
url_params
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -269,7 +269,7 @@ void Team::SendTeamBattleReport(Human* sender)
|
||||
}
|
||||
},
|
||||
url.c_str(),
|
||||
*params.get()
|
||||
params
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user