Impl Send Image

This commit is contained in:
Changhua
2022-08-06 21:44:26 +08:00
parent d009d8e294
commit 0a789eaa3e
6 changed files with 31 additions and 26 deletions
+7 -5
View File
@@ -1,4 +1,4 @@
#include <fcntl.h>
#include <fcntl.h>
#include <io.h>
#include <iostream>
#include <process.h>
@@ -60,12 +60,14 @@ int main()
wcout << L"Message: 接收通知中......" << endl;
WxSetTextMsgCb(onTextMsg);
// 测试消息发送
// 测试消息发送
wcout << L"测试消息发送" << endl;
WxSendTextMsg(wxid, at_wxid, content);
#if 0
// 发送照片
WxSendImageMsg(wxid, img_path);
// 发送照片
wcout << L"测试发送照片" << endl;
WxSendImageMsg(wxid, img_path);
#if 0
Sleep(10000); // 等待10秒
// 测试联系人获取
auto mContact = WxGetContacts();