Impl Send Text Message
This commit is contained in:
parent
f8c3ae0076
commit
30b4c866f6
@ -68,16 +68,17 @@ int main()
|
|||||||
for (auto it = WxMsgTypes.begin(); it != WxMsgTypes.end(); ++it) {
|
for (auto it = WxMsgTypes.begin(); it != WxMsgTypes.end(); ++it) {
|
||||||
wprintf(L"%d: %s\n", it->first, it->second.c_str());
|
wprintf(L"%d: %s\n", it->first, it->second.c_str());
|
||||||
}
|
}
|
||||||
|
Sleep(1000); // 等待1秒
|
||||||
|
|
||||||
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);
|
||||||
Sleep(1000); // 等待1秒
|
Sleep(1000); // 等待1秒
|
||||||
|
#if 0
|
||||||
// 测试发送照片
|
// 测试发送照片
|
||||||
wprintf(L"测试发送照片\n");
|
wprintf(L"测试发送照片\n");
|
||||||
WxSendImageMsg(wxid, img_path);
|
WxSendImageMsg(wxid, img_path);
|
||||||
|
Loading…
Reference in New Issue
Block a user