Impl Functions_FUNC_GET_MSG_TYPES

This commit is contained in:
Changhua 2023-05-24 22:01:31 +08:00
parent 5701a50bd5
commit 9cdfb66bd4
2 changed files with 35 additions and 19 deletions

View File

@ -28,7 +28,8 @@ static CHAR recvMsgBackupCode[5] = { 0 };
MsgTypes_t GetMsgTypes() MsgTypes_t GetMsgTypes()
{ {
const MsgTypes_t m = { { 0x01, "文字" }, const MsgTypes_t m = {
{ 0x01, "文字" },
{ 0x03, "图片" }, { 0x03, "图片" },
{ 0x22, "语音" }, { 0x22, "语音" },
{ 0x25, "好友确认" }, { 0x25, "好友确认" },
@ -43,9 +44,24 @@ MsgTypes_t GetMsgTypes()
{ 0x34, "VOIPNOTIFY" }, { 0x34, "VOIPNOTIFY" },
{ 0x35, "VOIPINVITE" }, { 0x35, "VOIPINVITE" },
{ 0x3E, "小视频" }, { 0x3E, "小视频" },
{ 0x42, "微信红包" },
{ 0x270F, "SYSNOTICE" }, { 0x270F, "SYSNOTICE" },
{ 0x2710, "红包、系统消息" }, { 0x2710, "红包、系统消息" },
{ 0x2712, "撤回消息" } }; { 0x2712, "撤回消息" },
{ 0x100031, "搜狗表情" },
{ 0x1000031, "链接" },
{ 0x1A000031, "微信红包" },
{ 0x20010031, "红包封面" },
{ 0x2D000031, "视频号视频" },
{ 0x2E000031, "视频号名片" },
{ 0x31000031, "引用消息" },
{ 0x37000031, "拍一拍" },
{ 0x3A000031, "视频号直播" },
{ 0x3A100031, "商品链接" },
{ 0x3A200031, "视频号直播" },
{ 0x3E000031, "音乐链接" },
{ 0x41000031, "文件" },
};
return m; return m;
} }

View File

@ -554,12 +554,12 @@ static bool dispatcher(uint8_t *in, size_t in_len, uint8_t *out, size_t *out_len
ret = func_get_self_wxid(out, out_len); ret = func_get_self_wxid(out, out_len);
break; break;
} }
#if 0
case Functions_FUNC_GET_MSG_TYPES: { case Functions_FUNC_GET_MSG_TYPES: {
LOG_DEBUG("[Functions_FUNC_GET_MSG_TYPES]"); LOG_DEBUG("[Functions_FUNC_GET_MSG_TYPES]");
ret = func_get_msg_types(out, out_len); ret = func_get_msg_types(out, out_len);
break; break;
} }
#if 0
case Functions_FUNC_GET_CONTACTS: { case Functions_FUNC_GET_CONTACTS: {
LOG_DEBUG("[Functions_FUNC_GET_CONTACTS]"); LOG_DEBUG("[Functions_FUNC_GET_CONTACTS]");
ret = func_get_contacts(out, out_len); ret = func_get_contacts(out, out_len);