Skip to content

Commit

Permalink
fix: 返回值修改
Browse files Browse the repository at this point in the history
  • Loading branch information
ttttupup committed Aug 8, 2023
1 parent 58caad4 commit 6436ce0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http_server_callback.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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", {}}};
Expand Down

0 comments on commit 6436ce0

Please sign in to comment.