1
This commit is contained in:
parent
76f2d768cf
commit
0b4430f909
@ -38,11 +38,12 @@ static void _ProxyCallback(f8::JsonHttpRequest* request)
|
|||||||
if (data.GetType() == a8::XOT_SIMPLE) {
|
if (data.GetType() == a8::XOT_SIMPLE) {
|
||||||
data.ReadFromJsonString("{}");
|
data.ReadFromJsonString("{}");
|
||||||
}
|
}
|
||||||
|
f8::HttpContext ctx;
|
||||||
if (request->request.HasKey("errcode") &&
|
if (request->request.HasKey("errcode") &&
|
||||||
request->request.Get("errcode").GetInt() == 0) {
|
request->request.Get("errcode").GetInt() == 0) {
|
||||||
req->cb(true, &request->request, nullptr);
|
req->cb(true, &request->request, &ctx);
|
||||||
} else {
|
} else {
|
||||||
req->cb(false, &request->request, nullptr);
|
req->cb(false, &request->request, &ctx);
|
||||||
}
|
}
|
||||||
HttpProxy::Instance()->DestoryRequest(req);
|
HttpProxy::Instance()->DestoryRequest(req);
|
||||||
}
|
}
|
||||||
|
2
third_party/f8
vendored
2
third_party/f8
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 74dfc2b9f910f757d57cca73f35909061417fba1
|
Subproject commit 2d814bb9b97e2a1c8be22c5063e7dbde467168a9
|
Loading…
x
Reference in New Issue
Block a user