mirror of
https://github.com/ttttupup/wxhelper.git
synced 2024-11-16 23:39:25 +08:00
@消息和ocr
This commit is contained in:
parent
5ba4f72d5c
commit
8279303614
@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
#include "wechat_function.h"
|
#include "wechat_function.h"
|
||||||
#include "db.h"
|
#include "db.h"
|
||||||
|
#include "contact_mgr.h"
|
||||||
|
|
||||||
namespace wxhelper {
|
namespace wxhelper {
|
||||||
SendMessageMgr::SendMessageMgr(DWORD base):BaseMgr(base) {}
|
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")) {
|
if (!lstrcmpiW((wchar_t *)wxids[i], (wchar_t *)L"notify@all")) {
|
||||||
nickname = L"所有人";
|
nickname = L"所有人";
|
||||||
} else {
|
} else {
|
||||||
// nickname = GlobalContext::GetInstance().contact_mgr->GetContactOrChatRoomNickname(wxids[i]);
|
ContactMgr contact{base_addr_};
|
||||||
|
nickname = contact.GetContactOrChatRoomNickname(wxids[i]);
|
||||||
}
|
}
|
||||||
if (nickname.length() == 0) {
|
if (nickname.length() == 0) {
|
||||||
continue;
|
continue;
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
#define WXHELPER_SEND_MESSAGE_MGR_H_
|
#define WXHELPER_SEND_MESSAGE_MGR_H_
|
||||||
#include "base_mgr.h"
|
#include "base_mgr.h"
|
||||||
namespace wxhelper {
|
namespace wxhelper {
|
||||||
class GlobalContext ;
|
|
||||||
class SendMessageMgr:public BaseMgr {
|
class SendMessageMgr:public BaseMgr {
|
||||||
public:
|
public:
|
||||||
explicit SendMessageMgr(DWORD base);
|
explicit SendMessageMgr(DWORD base);
|
||||||
|
Loading…
Reference in New Issue
Block a user