@消息和ocr

This commit is contained in:
hugy 2023-04-08 14:53:04 +08:00
parent 5ba4f72d5c
commit 8279303614
2 changed files with 3 additions and 2 deletions

View File

@ -5,6 +5,7 @@
#include "wechat_function.h"
#include "db.h"
#include "contact_mgr.h"
namespace wxhelper {
SendMessageMgr::SendMessageMgr(DWORD base):BaseMgr(base) {}
@ -51,7 +52,8 @@ int SendMessageMgr::SendAtText(wchar_t* chat_room_id, wchar_t** wxids, int len,
if (!lstrcmpiW((wchar_t *)wxids[i], (wchar_t *)L"notify@all")) {
nickname = L"所有人";
} else {
// nickname = GlobalContext::GetInstance().contact_mgr->GetContactOrChatRoomNickname(wxids[i]);
ContactMgr contact{base_addr_};
nickname = contact.GetContactOrChatRoomNickname(wxids[i]);
}
if (nickname.length() == 0) {
continue;

View File

@ -2,7 +2,6 @@
#define WXHELPER_SEND_MESSAGE_MGR_H_
#include "base_mgr.h"
namespace wxhelper {
class GlobalContext ;
class SendMessageMgr:public BaseMgr {
public:
explicit SendMessageMgr(DWORD base);