mirror of
https://github.com/ttttupup/wxhelper.git
synced 2024-11-05 18:09:24 +08:00
fix: 返回值修改
This commit is contained in:
parent
b17af7a9e0
commit
758b773d99
@ -484,7 +484,7 @@ std::string HttpDispatch(struct mg_connection *c, struct mg_http_message *hm) {
|
|||||||
} else if (mg_http_match_uri(hm, "/api/getContactProfile")) {
|
} else if (mg_http_match_uri(hm, "/api/getContactProfile")) {
|
||||||
std::wstring wxid = GetWStringParam(j_param, "wxid");
|
std::wstring wxid = GetWStringParam(j_param, "wxid");
|
||||||
common::ContactProfileInner profile;
|
common::ContactProfileInner profile;
|
||||||
int success = wxhelper::GlobalContext::GetInstance().mgr->GetContactByWxid(
|
INT64 success = wxhelper::GlobalContext::GetInstance().mgr->GetContactByWxid(
|
||||||
wxid, profile);
|
wxid, profile);
|
||||||
nlohmann::json ret_data = {
|
nlohmann::json ret_data = {
|
||||||
{"code", success}, {"msg", "success"}, {"data", {}}};
|
{"code", success}, {"msg", "success"}, {"data", {}}};
|
||||||
|
Loading…
Reference in New Issue
Block a user