1
This commit is contained in:
parent
bc1ec1ca72
commit
d1151d16a3
@ -22,12 +22,12 @@ struct HttpProxyRequest
|
|||||||
|
|
||||||
static void _ProxyCallback(f8::JsonHttpRequest* request)
|
static void _ProxyCallback(f8::JsonHttpRequest* request)
|
||||||
{
|
{
|
||||||
#ifdef DEBUG1
|
//#ifdef DEBUG
|
||||||
a8::UdpLog::Instance()->Debug("ProxyCallbBack request:%s",
|
a8::UdpLog::Instance()->Debug("ProxyCallbBack request:%s",
|
||||||
{
|
{
|
||||||
request->request.ToJsonStr()
|
request->request.ToJsonStr()
|
||||||
});
|
});
|
||||||
#endif
|
//#endif
|
||||||
std::string seq_id = request->request.Get("seq_id");
|
std::string seq_id = request->request.Get("seq_id");
|
||||||
HttpProxyRequest* req = HttpProxy::Instance()->GetRequest(seq_id);
|
HttpProxyRequest* req = HttpProxy::Instance()->GetRequest(seq_id);
|
||||||
if (req) {
|
if (req) {
|
||||||
@ -108,14 +108,12 @@ std::string HttpProxy::HttpGet(a8::XParams param,
|
|||||||
{
|
{
|
||||||
HttpProxyRequest* req = HttpProxy::Instance()->GetRequest(param.sender.GetString());
|
HttpProxyRequest* req = HttpProxy::Instance()->GetRequest(param.sender.GetString());
|
||||||
if (req) {
|
if (req) {
|
||||||
#ifdef DEBUG1
|
|
||||||
a8::UdpLog::Instance()->Warning("ProxyHttpGet error url:%s params:%s response:%s",
|
a8::UdpLog::Instance()->Warning("ProxyHttpGet error url:%s params:%s response:%s",
|
||||||
{
|
{
|
||||||
req->url,
|
req->url,
|
||||||
req->url_params.ToJsonStr(),
|
req->url_params.ToJsonStr(),
|
||||||
response
|
response
|
||||||
});
|
});
|
||||||
#endif
|
|
||||||
req->on_error(req->param, response);
|
req->on_error(req->param, response);
|
||||||
}
|
}
|
||||||
HttpProxy::Instance()->DestoryRequest(req);
|
HttpProxy::Instance()->DestoryRequest(req);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user