From 30b4c866f6a0483d0dac4cc43c9f18d8c574658d Mon Sep 17 00:00:00 2001 From: Changhua Date: Fri, 12 Aug 2022 22:30:35 +0800 Subject: [PATCH] Impl Send Text Message --- App/App.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/App/App.cpp b/App/App.cpp index 9012403..0955fa2 100644 --- a/App/App.cpp +++ b/App/App.cpp @@ -68,16 +68,17 @@ int main() for (auto it = WxMsgTypes.begin(); it != WxMsgTypes.end(); ++it) { wprintf(L"%d: %s\n", it->first, it->second.c_str()); } + Sleep(1000); // 等待1秒 wprintf(L"Message: 接收通知中......\n"); WxSetTextMsgCb(onTextMsg); Sleep(1000); // 等待1秒 -#if 0 + // 测试发送消息 wprintf(L"测试发送消息\n"); WxSendTextMsg(wxid, at_wxid, content); Sleep(1000); // 等待1秒 - +#if 0 // 测试发送照片 wprintf(L"测试发送照片\n"); WxSendImageMsg(wxid, img_path);