fix: 返回值修改

This commit is contained in:
hugy 2023-08-08 20:46:08 +08:00
parent b17af7a9e0
commit 758b773d99

View File

@ -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", {}}};