1
This commit is contained in:
parent
39ad1180c8
commit
4933bf3dde
@ -8,14 +8,14 @@
|
|||||||
|
|
||||||
namespace f8
|
namespace f8
|
||||||
{
|
{
|
||||||
|
|
||||||
JsonHttpRequest::JsonHttpRequest()
|
JsonHttpRequest::JsonHttpRequest()
|
||||||
{
|
{
|
||||||
resp_xobj = a8::MutableXObject::NewObject();
|
resp_xobj = a8::MutableXObject::CreateObject();
|
||||||
}
|
}
|
||||||
|
|
||||||
JsonHttpRequest::~JsonHttpRequest()
|
JsonHttpRequest::~JsonHttpRequest()
|
||||||
{
|
{
|
||||||
delete resp_xobj;
|
|
||||||
if (context && free_context) {
|
if (context && free_context) {
|
||||||
free_context(context);
|
free_context(context);
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@ namespace f8
|
|||||||
time_t handle_time = 0;
|
time_t handle_time = 0;
|
||||||
std::string query_str;
|
std::string query_str;
|
||||||
a8::XObject request;
|
a8::XObject request;
|
||||||
a8::MutableXObject* resp_xobj = nullptr;
|
std::shared_ptr<a8::MutableXObject> resp_xobj;
|
||||||
|
|
||||||
int async_pending_count = 0;
|
int async_pending_count = 0;
|
||||||
void* context = nullptr;
|
void* context = nullptr;
|
||||||
|
@ -205,7 +205,7 @@ namespace f8
|
|||||||
strftime(buff, a8::ArraySize(buff), "%F %T", &tm_time);
|
strftime(buff, a8::ArraySize(buff), "%F %T", &tm_time);
|
||||||
logtime_str.append((char*)buff);
|
logtime_str.append((char*)buff);
|
||||||
}
|
}
|
||||||
a8::MutableXObject* xobj = a8::MutableXObject::NewObject();
|
auto xobj = a8::MutableXObject::CreateObject();
|
||||||
|
|
||||||
xobj->SetVal("#account_id", accountid);
|
xobj->SetVal("#account_id", accountid);
|
||||||
xobj->SetVal("#type", "track");
|
xobj->SetVal("#type", "track");
|
||||||
@ -232,8 +232,6 @@ namespace f8
|
|||||||
impl_->save_cond->notify_all();
|
impl_->save_cond->notify_all();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
delete xobj;
|
|
||||||
xobj = nullptr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user