mirror of
https://github.com/ttttupup/wxhelper.git
synced 2024-11-05 18:09:24 +08:00
fix:还原
This commit is contained in:
parent
3cd6953920
commit
d1ce40c216
@ -9,7 +9,6 @@ SendMessageMgr::SendMessageMgr(DWORD base):BaseMgr(base) {}
|
||||
SendMessageMgr::~SendMessageMgr() {}
|
||||
int SendMessageMgr::SendText(wchar_t* wxid, wchar_t* msg) {
|
||||
int success = -1;
|
||||
unsigned long long msgid = 0;
|
||||
WeChatString to_user(wxid);
|
||||
WeChatString text_msg(msg);
|
||||
wchar_t** msg_pptr = &text_msg.ptr;
|
||||
@ -32,19 +31,12 @@ int SendMessageMgr::SendText(wchar_t* wxid, wchar_t* msg) {
|
||||
LEA ECX,chat_msg
|
||||
CALL send_text_msg_addr
|
||||
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
|
||||
LEA ECX,chat_msg
|
||||
CALL free_chat_msg_addr
|
||||
POPFD
|
||||
POPAD
|
||||
}
|
||||
SPDLOG_INFO("SendText code = {}",msgid);
|
||||
SPDLOG_INFO("global log with source info");
|
||||
return success;
|
||||
}
|
||||
int SendMessageMgr::SendAtText(wchar_t* chat_room_id, wchar_t** wxids, int len,
|
||||
|
Loading…
Reference in New Issue
Block a user