fix:还原

This commit is contained in:
hugy 2023-05-29 17:53:15 +08:00
parent 3cd6953920
commit d1ce40c216

View File

@ -9,7 +9,6 @@ SendMessageMgr::SendMessageMgr(DWORD base):BaseMgr(base) {}
SendMessageMgr::~SendMessageMgr() {} SendMessageMgr::~SendMessageMgr() {}
int SendMessageMgr::SendText(wchar_t* wxid, wchar_t* msg) { int SendMessageMgr::SendText(wchar_t* wxid, wchar_t* msg) {
int success = -1; int success = -1;
unsigned long long msgid = 0;
WeChatString to_user(wxid); WeChatString to_user(wxid);
WeChatString text_msg(msg); WeChatString text_msg(msg);
wchar_t** msg_pptr = &text_msg.ptr; wchar_t** msg_pptr = &text_msg.ptr;
@ -32,19 +31,12 @@ int SendMessageMgr::SendText(wchar_t* wxid, wchar_t* msg) {
LEA ECX,chat_msg LEA ECX,chat_msg
CALL send_text_msg_addr CALL send_text_msg_addr
MOV success,EAX MOV success,EAX
LEA ECX,msgid
MOV EDI,dword ptr[EAX +0x2b0]
MOV ESI,dword ptr[EAX+0x2b4]
MOV [ECX],EDI
MOV [ECX + 0x4],ESI
ADD ESP,0x18 ADD ESP,0x18
LEA ECX,chat_msg LEA ECX,chat_msg
CALL free_chat_msg_addr CALL free_chat_msg_addr
POPFD POPFD
POPAD POPAD
} }
SPDLOG_INFO("SendText code = {}",msgid);
SPDLOG_INFO("global log with source info");
return success; return success;
} }
int SendMessageMgr::SendAtText(wchar_t* chat_room_id, wchar_t** wxids, int len, int SendMessageMgr::SendAtText(wchar_t* chat_room_id, wchar_t** wxids, int len,