fix: 返回值修改

This commit is contained in:
hugy 2023-08-08 20:46:08 +08:00
parent 58caad4f34
commit 6436ce072a

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")) {
std::wstring wxid = GetWStringParam(j_param, "wxid");
common::ContactProfileInner profile;
int success = wxhelper::GlobalContext::GetInstance().mgr->GetContactByWxid(
INT64 success = wxhelper::GlobalContext::GetInstance().mgr->GetContactByWxid(
wxid, profile);
nlohmann::json ret_data = {
{"code", success}, {"msg", "success"}, {"data", {}}};