Replies: 4 comments 2 replies
-
这个微信返回的就是可能没昵称的,昵称可以通过其他接口查 |
Beta Was this translation helpful? Give feedback.
1 reply
-
获取群成员profile |
Beta Was this translation helpful? Give feedback.
1 reply
-
研究一下ChatRoomMgr::getMemberListByParam |
Beta Was this translation helpful? Give feedback.
0 replies
-
群操作除了这个函数其他的貌似都会炸.. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@ttttupup @ttt602 @sglmsn 使用http://127.0.0.1:19088/api/getMemberFromChatRoom接口获取的数据中,memberNickname的值为"^G^G",但我的群有3个成员,都设置了昵称,各位大神方便帮忙看下,感恩感谢。
源码:
`INT64 Manager::GetMemberFromChatRoom(const std::wstring &room_id,
common::ChatRoomMemberInner &member) {
INT64 success = -1;
UINT64 get_chat_room_mgr_addr = base_addr_ + offset::kChatRoomMgr;
UINT64 get_members_addr = base_addr_ + offset::kGetMemberFromChatRoom;
UINT64 new_chat_room_addr = base_addr_ + offset::kNewChatRoom;
UINT64 free_chat_room_addr = base_addr_ + offset::kFreeChatRoom;
func::__GetChatRoomMgr get_chat_room_mgr =
(func::__GetChatRoomMgr)get_chat_room_mgr_addr;
func::__GetMemberFromChatRoom get_members =
(func::__GetMemberFromChatRoom)get_members_addr;
func::__NewChatRoom new_chat_room = (func::__NewChatRoom)new_chat_room_addr;
func::__FreeChatRoom free_chat_room =
(func::__FreeChatRoom)free_chat_room_addr;
prototype::WeChatString chat_room_id(room_id);
char chat_room_info[0x2E0] = {0};
UINT64 addr = reinterpret_cast(&chat_room_info);
new_chat_room(addr);
UINT64 mgr = get_chat_room_mgr();
success = get_members(mgr, reinterpret_cast(&chat_room_id), addr);
member.chat_room_id = Utils::ReadWstringThenConvert(addr + 0x10);
member.admin = Utils::ReadWstringThenConvert(addr + 0x78);
member.member_nickname = Utils::ReadWstringThenConvert(addr + 0x50);
member.admin_nickname = Utils::ReadWstringThenConvert(addr + 0xA0);
member.member = Utils::ReadWeChatStr(addr + 0x30);
free_chat_room(addr);
return success; `
返回的数据:
{
"code": 1,
"data": {
"admin": "test1",
"adminNickname": "",
"chatRoomId": "test-room@chatroom",
"memberNickname": "^G^G",
"members": "test1^Gtest2^test3"
},
"msg": "success"
}
Beta Was this translation helpful? Give feedback.
All reactions