This commit is contained in:
aozhiwei 2022-05-05 23:43:05 +08:00
parent bc1ec1ca72
commit d1151d16a3

View File

@ -22,12 +22,12 @@ struct HttpProxyRequest
static void _ProxyCallback(f8::JsonHttpRequest* request)
{
#ifdef DEBUG1
//#ifdef DEBUG
a8::UdpLog::Instance()->Debug("ProxyCallbBack request:%s",
{
request->request.ToJsonStr()
});
#endif
//#endif
std::string seq_id = request->request.Get("seq_id");
HttpProxyRequest* req = HttpProxy::Instance()->GetRequest(seq_id);
if (req) {
@ -108,14 +108,12 @@ std::string HttpProxy::HttpGet(a8::XParams param,
{
HttpProxyRequest* req = HttpProxy::Instance()->GetRequest(param.sender.GetString());
if (req) {
#ifdef DEBUG1
a8::UdpLog::Instance()->Warning("ProxyHttpGet error url:%s params:%s response:%s",
{
req->url,
req->url_params.ToJsonStr(),
response
});
#endif
req->on_error(req->param, response);
}
HttpProxy::Instance()->DestoryRequest(req);