Impl Functions_FUNC_GET_USER_INFO

This commit is contained in:
Changhua 2023-06-01 15:44:05 +08:00
parent 99b65fe2f9
commit 4ef478a5bb
2 changed files with 2 additions and 2 deletions

View File

@ -574,12 +574,12 @@ static bool dispatcher(uint8_t *in, size_t in_len, uint8_t *out, size_t *out_len
ret = func_get_db_tables(req.msg.str, out, out_len);
break;
}
#if 0
case Functions_FUNC_GET_USER_INFO: {
LOG_DEBUG("[Functions_FUNC_GET_USER_INFO]");
ret = func_get_user_info(out, out_len);
break;
}
#if 0
case Functions_FUNC_SEND_TXT: {
LOG_DEBUG("[Functions_FUNC_SEND_TXT]");
ret = func_send_txt(req.msg.txt, out, out_len);

View File

@ -33,7 +33,7 @@ UserInfo_t GetUserInfo()
ui.wxid = GetSelfWxid();
ui.name = GET_STRING_FROM_P(g_WeChatWinDllAddr + g_WxCalls.ui.nickName);
ui.mobile = GET_STRING_FROM_P(g_WeChatWinDllAddr + g_WxCalls.ui.mobile);
ui.home = GET_STRING(g_WeChatWinDllAddr + g_WxCalls.ui.home);
ui.home = Wstring2String(GET_WSTRING(g_WeChatWinDllAddr + g_WxCalls.ui.home));
return ui;
}