Impl Receive Message
This commit is contained in:
parent
74bfa3f5e1
commit
f8c3ae0076
@ -61,7 +61,7 @@ int main()
|
|||||||
if (status != 0) {
|
if (status != 0) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#if 0
|
|
||||||
// 获取消息类型
|
// 获取消息类型
|
||||||
wprintf(L"获取消息类型\n");
|
wprintf(L"获取消息类型\n");
|
||||||
const MsgTypesMap_t WxMsgTypes = WxGetMsgTypes();
|
const MsgTypesMap_t WxMsgTypes = WxGetMsgTypes();
|
||||||
@ -72,7 +72,7 @@ int main()
|
|||||||
wprintf(L"Message: 接收通知中......\n");
|
wprintf(L"Message: 接收通知中......\n");
|
||||||
WxSetTextMsgCb(onTextMsg);
|
WxSetTextMsgCb(onTextMsg);
|
||||||
Sleep(1000); // 等待1秒
|
Sleep(1000); // 等待1秒
|
||||||
|
#if 0
|
||||||
// 测试发送消息
|
// 测试发送消息
|
||||||
wprintf(L"测试发送消息\n");
|
wprintf(L"测试发送消息\n");
|
||||||
WxSendTextMsg(wxid, at_wxid, content);
|
WxSendTextMsg(wxid, at_wxid, content);
|
||||||
|
@ -9,7 +9,7 @@ WxCalls_t wxCalls = { 0x2366538, // Login Status
|
|||||||
0x521D30, // Send Message
|
0x521D30, // Send Message
|
||||||
/* Receive Message:
|
/* Receive Message:
|
||||||
Hook, call, type, self, id, msgXml, roomId, wxId, content */
|
Hook, call, type, self, id, msgXml, roomId, wxId, content */
|
||||||
{ 0x550F4C, 0xA94A50, 0x38, 0x3C, 0x184, 0x1EC, 0x48, 0x170, 0x70 },
|
{ 0x550F4C, 0xA96350, 0x38, 0x3C, 0x184, 0x1EC, 0x48, 0x170, 0x70 },
|
||||||
{ 0xBD780, 0x770120, 0x521640 }, // Send Image Message
|
{ 0xBD780, 0x770120, 0x521640 }, // Send Image Message
|
||||||
/* Get Contacts:
|
/* Get Contacts:
|
||||||
Base, head, wxId, Code, Name, Gender, Country, Province, City*/
|
Base, head, wxId, Code, Name, Gender, Country, Province, City*/
|
||||||
|
Loading…
Reference in New Issue
Block a user