# 回调消息详解
### 回调消息常见问题
Q. **微信在线为什么没有消息推送?**
```
当回调消息未能通过 HTTP POST/JSON 方式成功推送至接收方时,请考虑使用 Apifox 向接收地址发送一条测试消息。如果仍然未能接收到消息,请检查接收地址的可用性。反之,若能成功接收测试消息,请联系客服,我们将协助您进行进一步的问题排查。
```
Q. **如何判断是否是自己发送的消息?**
```
可通过消息发送人($.Data.FromUserName.string)与所属微信($.Wxid)是否一致进行判断。
```
Q. **为什么同一条消息会重复回调?**
```
因服务重启、同步历史消息、失败重试等原因,同一条消息可能会重复推送,接收方需根据$.Appid+$.Data.NewMsgId字段做消息排重,以防消息重复处理。
```
---
#### 文本消息
```json
{
"TypeName": "AddMsg", 消息类型
"Appid": "wx_wR_U4zPj2M_OTS3BCyoE4", 设备ID
"Wxid": "wxid_phyyedw9xap22", 所属微信的wxid
"Data":
{
"MsgId": 1040356095, 消息ID
"FromUserName":
{
"string": "wxid_phyyedw9xap22" 消息发送人的wxid
},
"ToUserName":
{
"string": "wxid_0xsqb3o0tsvz22" 消息接收人的wxid
},
"MsgType": 1, 消息类型 1是文本消息
"Content":
{
"string": "123" # 消息内容
},
"Status": 3,
"ImgStatus": 1,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": 1705043418, 消息发送时间
"MsgSource": "\n\t\n\t\t1\n\t\n\tv1_volHXhv4\n\t\n\t\t\n\t\n\n",
"PushContent": "朝夕。 : 123", 消息通知内容
"NewMsgId": 7773749793478223190, 消息ID
"MsgSeq": 640356095
}
}
```
#### 图片消息
```json
{
"TypeName": "AddMsg", 消息类型
"Appid": "wx_wR_U4zPj2M_OTS3BCyoE4", 设备ID
"Wxid": "wxid_phyyedw9xap22", 所属微信的wxid
"Data":
{
"MsgId": 1040356099, 消息ID
"FromUserName":
{
"string": "wxid_phyyedw9xap22" 消息发送人的wxid
},
"ToUserName":
{
"string": "wxid_0xsqb3o0tsvz22" 消息接收人的wxid
},
"MsgType": 3, 消息类型 3是图片消息
"Content":
{
"string": "\n\n\t
\n\t\n\t\n\n" 图片的cdn信息,可用此字段做转发图片
},
"Status": 3,
"ImgStatus": 2,
"ImgBuf":
{
"iLen": 2146,
"buffer": "/9j/4AAQSkZJRgABAQAASABIAAD/4QBM..." # 缩略图的base64
},
"CreateTime": 1705043678, 消息发送时间
"MsgSource": "\n\t\n\t\t2\n\t\n\t\n\t\t5b04ea0181f86c7f3d126e9a7fe5038b_\n\t\n\tv1_5WGxwSEj\n\t\n\t\t\n\t\n\n",
"PushContent": "朝夕。 : [图片]", 消息通知内容
"NewMsgId": 6906713067183447582, 消息ID
"MsgSeq": 640356099
}
}
```
#### 语音消息
```json
{
"TypeName": "AddMsg", 消息类型
"Appid": "wx_wR_U4zPj2M_OTS3BCyoE4", 设备ID
"Wxid": "wxid_phyyedw9xap22", 所属微信的wxid
"Data":
{
"MsgId": 1040356100, 消息ID
"FromUserName":
{
"string": "wxid_phyyedw9xap22" 消息发送人的wxid
},
"ToUserName":
{
"string": "wxid_0xsqb3o0tsvz22" 消息接收人的wxid
},
"MsgType": 34, 消息类型,34是语音消息
"Content":
{
"string": "" 语音消息的下载信息,可用于下载语音文件
},
"Status": 3,
"ImgStatus": 1,
"ImgBuf":
{
"iLen": 3600,
"buffer": "AiMhU0lMS19WMxMApzi9JA+qToPB..." 语音文件的base64,并非所有语音消息都有本字段
},
"CreateTime": 1705043782, 消息发送时间
"MsgSource": "\n\tv1_j+rf/Jnp\n\t\n\t\t\n\t\n\n",
"PushContent": "朝夕。 : [语音]", 消息通知内容
"NewMsgId": 1428830975092239121, 消息ID
"MsgSeq": 640356100
}
}
```
#### 视频消息
```json
{
"TypeName": "AddMsg", 消息类型
"Appid": "wx_wR_U4zPj2M_OTS3BCyoE4", 设备ID
"Wxid": "wxid_phyyedw9xap22", 所属微信的wxid
"Data":
{
"MsgId": 1040356101, 消息ID
"FromUserName":
{
"string": "wxid_phyyedw9xap22" 消息发送人的wxid
},
"ToUserName":
{
"string": "wxid_0xsqb3o0tsvz22" 消息接收人的wxid
},
"MsgType": 43, 消息类型,43是视频消息
"Content":
{
"string": "\n\n\t\n\n" 视频消息的cdn信息,可用此字段做转发视频
},
"Status": 3,
"ImgStatus": 1,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": 1705043879, 消息发送时间
"MsgSource": "\n\t0\n\t\n\t\tce3ebc6d2893c7a2669ac5d2eaa4aadf_\n\t\n\tv1_kk/psF9W\n\t\n\t\t\n\t\n\n",
"PushContent": "朝夕。 : [视频]", 消息通知内容
"NewMsgId": 6628526085342711793, 消息ID
"MsgSeq": 640356101
}
}
```
#### emoji表情
```json
{
"TypeName": "AddMsg", 消息类型
"Appid": "wx_wR_U4zPj2M_OTS3BCyoE4", 设备ID
"Wxid": "wxid_phyyedw9xap22", 所属微信的wxid
"Data":
{
"MsgId": 1040356102, 消息ID
"FromUserName":
{
"string": "wxid_phyyedw9xap22" 消息发送人的wxid
},
"ToUserName":
{
"string": "wxid_0xsqb3o0tsvz22" 消息接收人的wxid
},
"MsgType": 47, 消息类型,47是emoji消息
"Content":
{
"string": " " 可解析xml中的md5用与发送emoji消息
},
"Status": 3,
"ImgStatus": 2,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": 1705043947, 消息发送时间
"MsgSource": "\n\tv1_vy/xC7WS\n\t\n\t\t\n\t\n\n",
"PushContent": "朝夕。 : [动画表情]", 消息通知内容
"NewMsgId": 6674256223577965652, 消息ID
"MsgSeq": 640356102
}
}
```
#### 公众号链接
- 判断链接消息的逻辑:\$.Data.MsgType=49 并且 解析\$.Data.Content.string中的xml msg.appmsg.type=5,按此逻辑会匹配到两种消息,链接消息及邀请进群的通知,可依据xml msg.appmsg.title做区分
```json
{
"TypeName": "AddMsg", 消息类型
"Appid": "wx_wR_U4zPj2M_OTS3BCyoE4", 设备ID
"Wxid": "wxid_phyyedw9xap22", 所属微信的wxid
"Data":
{
"MsgId": 1040356105, 消息ID
"FromUserName":
{
"string": "wxid_phyyedw9xap22" 消息发送人的wxid
},
"ToUserName":
{
"string": "wxid_0xsqb3o0tsvz22" 消息接收人的wxid
},
"MsgType": 49,
"Content":
{
"string": "\n\n\t\n\t\t尔滨,又有好消息!\n\t\t\n\t\t\n\t\t5\n\t\t0\n\t\t0\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t0\n\t\thttp://mp.weixin.qq.com/s?__biz=MzA4NDI3NjcyNA==&mid=2650011300&idx=1&sn=52739c3d39c030394da972e3d83efc98&chksm=86ed931f730a3e19a5edc840896d9bf1ad1f8b60cdccafea6a9e7a38a0a33f261877d334622b&scene=0&xtrack=1#rd\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\t0\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t3057020100044b304902010002048399cc8402032f7e350204a810d83a020465a0e829042462343663343435612d333737392d346230612d616434622d6263383038633562643562340204051408030201000405004c53d900\n\t\t\tadd1b4bcf9cc50c6a8f14ff334bc3d5c\n\t\t\t83741\n\t\t\t1000\n\t\t\t426\n\t\t\t37889a1e22c1e58ebd4e6589b999f63e\n\t\t\t\n\t\t\n\t\t\n\t\tgh_6651e07e4b2d\n\t\t新华社\n\t\thttps://mmbiz.qpic.cn/mmbiz_jpg/azXQmS1HA7mOP6LHArYqZ5ypK4iajvBdfhNxzyANcQ1eW7ec6yZVj7tv8Lt6tWftSNckDz3j4FqkP04TxARG8dQ/640?wxtype=jpeg&wxfrom=0\n\t\t\n\t\t\n\t\t\n\t\t\t0\n\t\t\n\t\n\twxid_phyyedw9xap22\n\t0\n\t\n\t\t1\n\t\t\n\t\n\t\n\n" 可用此字段做转发链接
},
"Status": 3,
"ImgStatus": 2,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": 1705044033, 消息发送时间
"MsgSource": "\n\t\n\t\t\n\t\n\t\n\t\t4\n\t\n\t\n\t\tba15c632e8fa89ed84bd027f09495591_\n\t\n\tv1_ptaEL1bv\n\n",
"PushContent": "朝夕。 : [链接]尔滨,又有好消息!", 消息通知内容
"NewMsgId": 1623411326098221490, 消息ID
"MsgSeq": 640356105
}
}
```
#### 文件消息(发送文件的通知)
- **注意**:收到本条消息仅代表对方在向你发送文件,并不可以用本条做转发及下载
- 判断此类消息的逻辑:\$.Data.MsgType=49 并且 解析\$.Data.Content.string中的xml msg.appmsg.type=74
```json
{
"TypeName": "AddMsg", 消息类型
"Appid": "wx_wR_U4zPj2M_OTS3BCyoE4", 设备ID
"Wxid": "wxid_phyyedw9xap22", 所属微信的wxid
"Data":
{
"MsgId": 1040356106, 消息ID
"FromUserName":
{
"string": "wxid_phyyedw9xap22" 消息发送人的wxid
},
"ToUserName":
{
"string": "wxid_0xsqb3o0tsvz22" 消息接收人的wxid
},
"MsgType": 49,
"Content":
{
"string": "\n \n \n 74\n 0\n \n 8939\n \n v1_paVQtd+CWGr2I3eOg71E6KBpQf0yY9RFQkqDPwT4yMnnbawqveao1vAE0qCOhWcIPkMGZavimUTDFcImr+SaManD8pKVQbBPTUvSmA6UsXgZWqQDOT00VLx7U/hoP3/CwveN2Lk56nxcef/XJiGKrOpAHKHcZvccaGk9/68wsBCOyanya/9xgdHTYxyQp4IadiSe\n 0\n \n \n \n \n wxid_phyyedw9xap22\n"
},
"Status": 3,
"ImgStatus": 1,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": 1705044119, 消息发送时间
"MsgSource": "\n\tv1_WyLyIcy+\n\t\n\t\t\n\t\n\n",
"PushContent": "朝夕。 : [文件]hhh.xlsx", 消息通知内容
"NewMsgId": 1789783684714859663, 消息ID
"MsgSeq": 640356106
}
}
```
#### 文件消息(文件发送完成)
- **注意**:收到本条消息表示对方给你的文件发送完成,可用本条消息做转发及下载
- 判断此类消息的逻辑:\$.Data.MsgType=49 并且 解析\$.Data.Content.string中的xml msg.appmsg.type=6
```json
{
"TypeName": "AddMsg", 消息类型
"Appid": "wx_wR_U4zPj2M_OTS3BCyoE4", 设备ID
"Wxid": "wxid_phyyedw9xap22", 所属微信的wxid
"Data":
{
"MsgId": 1040356107, 消息ID
"FromUserName":
{
"string": "wxid_phyyedw9xap22" 消息发送人的wxid
},
"ToUserName":
{
"string": "wxid_0xsqb3o0tsvz22" 消息接收人的wxid
},
"MsgType": 49,
"Content":
{
"string": "\n\n\t\n\t\thhh.xlsx\n\t\t\n\t\t\n\t\t6\n\t\t0\n\t\t0\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t0\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\t8939\n\t\t\t@cdn_3057020100044b304902010002043904752002032f7e350204aa0dd83a020465a0e897042430373538386564322d353866642d343234342d386563652d6236353536306438623936610204011800050201000405004c56f900_3f28b0cbd65a86c3a980f3e22808c0fe_1\n\t\t\t\n\t\t\txlsx\n\t\t\t3057020100044b304902010002043904752002032f7e350204aa0dd83a020465a0e897042430373538386564322d353866642d343234342d386563652d6236353536306438623936610204011800050201000405004c56f900\n\t\t\t3f28b0cbd65a86c3a980f3e22808c0fe\n\t\t\t0\n\t\t\t1789783684714859663\n\t\t\tv1_paVQtd+CWGr2I3eOg71E6KBpQf0yY9RFQkqDPwT4yMnnbawqveao1vAE0qCOhWcIPkMGZavimUTDFcImr+SaManD8pKVQbBPTUvSmA6UsXgZWqQDOT00VLx7U/hoP3/CwveN2Lk56nxcef/XJiGKrOpAHKHcZvccaGk9/68wsBCOyanya/9xgdHTYxyQp4IadiSe\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t84c6737fe9549270c9b3ca4f6fc88f6f\n\t\t\n\t\n\twxid_phyyedw9xap22\n\t0\n\t\n\t\t1\n\t\t\n\t\n\t\n\n"
},
"Status": 3,
"ImgStatus": 1,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": 1705044119, 消息发送时间
"MsgSource": "\n\t\n\t\t3\n\t\n\t\n\t\t896374a2b5979141804d509256c22f0b_\n\t\n\tv1_n7kZ01bp\n\t\n\t\t\n\t\n\n",
"PushContent": "朝夕。 : [文件]hhh.xlsx", 消息通知内容
"NewMsgId": 3617029648443513152, 消息ID
"MsgSeq": 640356107
}
}
```
#### 名片消息
```json
{
"TypeName": "AddMsg", 消息类型
"Appid": "wx_wR_U4zPj2M_OTS3BCyoE4", 设备ID
"Wxid": "wxid_phyyedw9xap22", 所属微信的wxid
"Data":
{
"MsgId": 1040356108, 消息ID
"FromUserName":
{
"string": "wxid_phyyedw9xap22" 消息发送人的wxid
},
"ToUserName":
{
"string": "wxid_0xsqb3o0tsvz22" 消息接收人的wxid
},
"MsgType": 42, 消息类型,42是名片消息
"Content":
{
"string": "\n\n" 名片中微信号的基本信息,可用于添加好友
},
"Status": 3,
"ImgStatus": 1,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": 1705044829, 消息发送时间
"MsgSource": "\n\t0\n\t\n\t\t2\n\t\n\tv1_bawbB33Z\n\t\n\t\t\n\t\n\n",
"PushContent": "朝夕。 : [名片]Ashley", 消息通知内容
"NewMsgId": 766322251431765776, 消息ID
"MsgSeq": 640356108
}
}
```
#### 好友添加请求通知
```json
{
"TypeName": "AddMsg", 消息类型
"Appid": "wx_wR_U4zPj2M_OTS3BCyoE4", 设备ID
"Wxid": "wxid_phyyedw9xap22", 所属微信的wxid
"Data":
{
"MsgId": 1040356166, 消息ID
"FromUserName":
{
"string": "fmessage" 消息发送人的wxid
},
"ToUserName":
{
"string": "wxid_0xsqb3o0tsvz22" 消息接收人的wxid
},
"MsgType": 37, 消息类型,37是好友添加请求通知
"Content":
{
"string": "" 请求添加好友微信号的基本信息,可用于添加好友
},
"Status": 3,
"ImgStatus": 1,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": 1705045979, 消息发送时间
"MsgSource": "\n\tv1_GOrHWRNL\n\t\n\t\t\n\t\n\n",
"NewMsgId": 1109510141823131559, 消息ID
"MsgSeq": 640356166
}
}
```
#### 好友通过验证及好友资料变更的通知消息
```json
{
"Appid": "wx_wR_U4zPj2M_OTS3BCyoE4",
"TypeName": "ModContacts",
"Data":
{
"UserName":
{
"string": "wxid_0xsqb3o0tsvz22"
},
"NickName":
{
"string": "chaoxi。"
},
"PyInitial":
{
"string": "CX"
},
"QuanPin":
{
"string": "chaoxi"
},
"Sex": 1,
"ImgBuf":
{
"iLen": 0
},
"BitMask": 4294967295,
"BitVal": 3,
"ImgFlag": 1,
"Remark":
{},
"RemarkPyinitial":
{},
"RemarkQuanPin":
{},
"ContactType": 0,
"RoomInfoCount": 0,
"DomainList": [
{}],
"ChatRoomNotify": 0,
"AddContactScene": 0,
"Province": "Jiangsu",
"City": "Nanjing",
"Signature": "......",
"PersonalCard": 0,
"HasWeiXinHdHeadImg": 1,
"VerifyFlag": 0,
"Level": 6,
"Source": 14,
"WeiboFlag": 0,
"AlbumStyle": 0,
"AlbumFlag": 3,
"SnsUserInfo":
{
"SnsFlag": 1,
"SnsBgimgId": "http://shmmsns.qpic.cn/mmsns/FzeKA69P5uIdqPfQxp59LvOohoE2iaiaj86IBH1jl0F76aGvg8AlU7giaMtBhQ3bPibunbhVLb3aEq4/0",
"SnsBgobjectId": 14216284872728580667,
"SnsFlagEx": 7297
},
"Country": "CN",
"BigHeadImgUrl": "https://wx.qlogo.cn/mmhead/ver_1/qqncCu2avRYruPcQbav3PrwaGSS31QgN6dqW8q1XuDKjgiaAuwoFPw3kN8Cj3zIBL36M93R2Xwib0IddUK3gqbFeezEiaA8K2mMdibT5VUDDrbn7F7M1Mxicmows9cdYNOicjI/0",
"SmallHeadImgUrl": "https://wx.qlogo.cn/mmhead/ver_1/qqncCu2avRYruPcQbav3PrwaGSS31QgN6dqW8q1XuDKjgiaAuwoFPw3kN8Cj3zIBL36M93R2Xwib0IddUK3gqbFeezEiaA8K2mMdibT5VUDDrbn7F7M1Mxicmows9cdYNOicjI/132",
"CustomizedInfo":
{
"BrandFlag": 0
},
"EncryptUserName": "v3_020b3826fd03010000000000feba078fc1e760000000501ea9a3dba12f95f6b60a0536a1adb6f6352c38d0916c9c74045d85aa602efa2d81b84adde05d285124e8a54b9fcd039f725d6ac0d3bd651c7c74503a@stranger",
"AdditionalContactList":
{
"LinkedinContactItem":
{}
},
"ChatroomMaxCount": 0,
"DeleteFlag": 0,
"Description": "\b\u0000\u0018\u0000\"\u0000(\u00008\u0000",
"ChatroomStatus": 0,
"Extflag": 0,
"ChatRoomBusinessType": 0
}
}
```
#### 小程序消息
- 判断此类消息的逻辑:\$.Data.MsgType=49 并且 解析\$.Data.Content.string中的xml msg.appmsg.type=33/36
```json
{
"TypeName": "AddMsg", 消息类型
"Appid": "wx_wR_U4zPj2M_OTS3BCyoE4", 设备ID
"Wxid": "wxid_phyyedw9xap22", 所属微信的wxid
"Data":
{
"MsgId": 1040356109, 消息ID
"FromUserName":
{
"string": "wxid_phyyedw9xap22" 消息发送人的wxid
},
"ToUserName":
{
"string": "wxid_0xsqb3o0tsvz22" 消息接收人的wxid
},
"MsgType": 49,
"Content":
{
"string": "\n\n\t\n\t\t腾讯云助手\n\t\t腾讯云助手\n\t\t33\n\t\thttps://mp.weixin.qq.com/mp/waerrpage?appid=wxe2039b83454e49ed&type=upgrade&upgradetype=3#wechat_redirect\n\t\t\n\t\t\t3057020100044b304902010002048399cc8402032df731020414e461b4020465a0eb8f042463626430353633382d376263632d346161642d396234372d3435613131336339326231640204051808030201000405004c550500\n\t\t\te1284d4ae13ebd9bb2cde5251cdd05e4\n\t\t\t52357\n\t\t\t720\n\t\t\t576\n\t\t\td4142726bc730088f0fa44c9161a0992\n\t\t\td4142726bc730088f0fa44c9161a0992\n\t\t\t0\n\t\t\twxid_0xsqb3o0tsvz22_38_1705044879\n\t\t\n\t\tgh_44fc2ced7f87@app\n\t\t腾讯云助手\n\t\te1284d4ae13ebd9bb2cde5251cdd05e4\n\t\t\n\t\t\t\n\t\t\t\n\t\t\t2\n\t\t\t594\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t0\n\t\t\t0\n\t\t\t538\n\t\t\t0\n\t\t\t0\n\t\t\t0\n\t\t\t0\n\t\t\n\t\n\twxid_phyyedw9xap22\n\t0\n\t\n\t\t1\n\t\t\n\t\n\t\n\n"
},
"Status": 3,
"ImgStatus": 2,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": 1705044879, 消息发送时间
"MsgSource": "\n\t0\n\t\n\t\t2\n\t\n\t\n\t\tdb46d46fe0a926c4b571dfe9d8096bfa_\n\t\n\tv1_DkelOoZN\n\t\n\t\t\n\t\n\n",
"PushContent": "朝夕。 : [小程序]腾讯云助手", 消息通知内容
"NewMsgId": 572974861799389774, 消息ID
"MsgSeq": 640356109
}
}
```
#### 引用消息
- 判断此类消息的逻辑:\$.Data.MsgType=49 并且 解析\$.Data.Content.string中的xml msg.appmsg.type=57
```json
{
"TypeName": "AddMsg", 消息类型
"Appid": "wx_wR_U4zPj2M_OTS3BCyoE4", 设备ID
"Wxid": "wxid_phyyedw9xap22", 所属微信的wxid
"Data":
{
"MsgId": 1040356110, 消息ID
"FromUserName":
{
"string": "wxid_phyyedw9xap22" 消息发送人的wxid
},
"ToUserName":
{
"string": "wxid_0xsqb3o0tsvz22" 消息接收人的wxid
},
"MsgType": 49,
"Content":
{
"string": "\n\n\t\n\t\t看看这个\n\t\t\n\t\t\n\t\t57\n\t\t0\n\t\t0\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t0\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\t0\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\t49\n\t\t\t3617029648443513152\n\t\t\twxid_phyyedw9xap22\n\t\t\twxid_phyyedw9xap22\n\t\t\t朝夕。\n\t\t\t<msg><appmsg appid=\"\" sdkver=\"0\"><title>hhh.xlsx</title><des></des><action></action><type>6</type><showtype>0</showtype><soundtype>0</soundtype><mediatagname></mediatagname><messageext></messageext><messageaction></messageaction><content></content><contentattr>0</contentattr><url></url><lowurl></lowurl><dataurl></dataurl><lowdataurl></lowdataurl><appattach><totallen>8939</totallen><attachid>@cdn_3057020100044b304902010002043904752002032f7e350204aa0dd83a020465a0e897042430373538386564322d353866642d343234342d386563652d6236353536306438623936610204011800050201000405004c56f900_3f28b0cbd65a86c3a980f3e22808c0fe_1</attachid><emoticonmd5></emoticonmd5><fileext>xlsx</fileext><cdnattachurl>3057020100044b304902010002043904752002032f7e350204aa0dd83a020465a0e897042430373538386564322d353866642d343234342d386563652d6236353536306438623936610204011800050201000405004c56f900</cdnattachurl><aeskey>3f28b0cbd65a86c3a980f3e22808c0fe</aeskey><encryver>0</encryver><overwrite_newmsgid>1789783684714859663</overwrite_newmsgid><fileuploadtoken>v1_paVQtd+CWGr2I3eOg71E6KBpQf0yY9RFQkqDPwT4yMnnbawqveao1vAE0qCOhWcIPkMGZavimUTDFcImr+SaManD8pKVQbBPTUvSmA6UsXgZWqQDOT00VLx7U/hoP3/CwveN2Lk56nxcef/XJiGKrOpAHKHcZvccaGk9/68wsBCOyanya/9xgdHTYxyQp4IadiSe</fileuploadtoken></appattach><extinfo></extinfo><sourceusername></sourceusername><sourcedisplayname></sourcedisplayname><thumburl></thumburl><md5>84c6737fe9549270c9b3ca4f6fc88f6f</md5><statextstr></statextstr></appmsg><fromusername></fromusername><appinfo><version>0</version><appname></appname><isforceupdate>1</isforceupdate></appinfo></msg>\n\t\t\t<msgsource>\n\t<alnode>\n\t\t<cf>3</cf>\n\t</alnode>\n\t<sec_msg_node>\n\t\t<uuid>896374a2b5979141804d509256c22f0b_</uuid>\n\t</sec_msg_node>\n</msgsource>\n\n\t\t\n\t\n\twxid_phyyedw9xap22\n\t0\n\t\n\t\t1\n\t\t\n\t\n\t\n\n"
},
"Status": 3,
"ImgStatus": 1,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": 1705044946, 消息发送时间
"MsgSource": "\n\t\n\t\tea25ade83dc4b9ec91060ca3e1a0f5a2_\n\t\n\tv1_oTWRYdd1\n\t\n\t\t\n\t\n\n",
"PushContent": "看看这个", 消息通知内容
"NewMsgId": 4334300109515885085, 消息ID
"MsgSeq": 640356110
}
}
```
#### 转账消息
- 判断此类消息的逻辑:\$.Data.MsgType=49 并且 解析\$.Data.Content.string中的xml msg.appmsg.type=2000
```json
{
"TypeName": "AddMsg", 消息类型
"Appid": "wx_wR_U4zPj2M_OTS3BCyoE4", 设备ID
"Wxid": "wxid_phyyedw9xap22", 所属微信的wxid
"Data":
{
"MsgId": 1040356112, 消息ID
"FromUserName":
{
"string": "wxid_phyyedw9xap22" 消息发送人的wxid
},
"ToUserName":
{
"string": "wxid_0xsqb3o0tsvz22" 消息接收人的wxid
},
"MsgType": 49,
"Content":
{
"string": "\n\n\n\n\n2000\n\n\n\n\n\n\n\n1\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
},
"Status": 3,
"ImgStatus": 1,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": 1705044984, 消息发送时间
"MsgSource": "\n\tv1_eDcIna+F\n\t\n\t\t\n\t\n\n",
"PushContent": "朝夕。 : [转账]", 消息通知内容
"NewMsgId": 7290406378327063279, 消息ID
"MsgSeq": 640356112
}
}
```
#### 红包消息
- 判断此类消息的逻辑:\$.Data.MsgType=49 并且 解析\$.Data.Content.string中的xml msg.appmsg.type=2001
```json
{
"TypeName": "AddMsg", 消息类型
"Appid": "wx_wR_U4zPj2M_OTS3BCyoE4", 设备ID
"Wxid": "wxid_phyyedw9xap22", 所属微信的wxid
"Data":
{
"MsgId": 1040356113, 消息ID
"FromUserName":
{
"string": "wxid_phyyedw9xap22" 消息发送人的wxid
},
"ToUserName":
{
"string": "wxid_0xsqb3o0tsvz22" 消息接收人的wxid
},
"MsgType": 49,
"Content":
{
"string": "\n\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t微信红包\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t\n\t\n\n"
},
"Status": 3,
"ImgStatus": 1,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": 1705045011, 消息发送时间
"MsgSource": "\n\t\n\t\n\tv1_Js6wJde/\n\t\n\t\t\n\t\n\n",
"PushContent": "朝夕。 : [红包]恭喜发财,大吉大利", 消息通知内容
"NewMsgId": 5517720959405775296, 消息ID
"MsgSeq": 640356113
}
}
```
#### 视频号消息
- 判断此类消息的逻辑:\$.Data.MsgType=49 并且 解析\$.Data.Content.string中的xml msg.appmsg.type=51
```json
{
"TypeName": "AddMsg", 消息类型
"Appid": "wx_wR_U4zPj2M_OTS3BCyoE4", 设备ID
"Wxid": "wxid_phyyedw9xap22", 所属微信的wxid
"Data":
{
"MsgId": 1040356115, 消息ID
"FromUserName":
{
"string": "wxid_phyyedw9xap22" 消息发送人的wxid
},
"ToUserName":
{
"string": "wxid_0xsqb3o0tsvz22" 消息接收人的wxid
},
"MsgType": 49,
"Content":
{
"string": "\n\n\t\n\t\t当前微信版本不支持展示该内容,请升级至最新版本。\n\t\t\n\t\t\n\t\t51\n\t\t0\n\t\t0\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t0\n\t\thttps://support.weixin.qq.com/update/\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\t0\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\t14264358459626428566\n\t\t\t4\n\t\t\t国风锦鲤\n\t\t\thttps://wx.qlogo.cn/finderhead/ver_1/x2LxetmLmgoo9jp69R3wcrtZ0LBLdjVv9vrK9HmPNGEdD1iawdrPffPvMmFUez8pWqRIfs7DtgPiaV5C7DZpibH8b3y0jG178aIict6uPf0Vht4/0\n\t\t\t还招人么?我不要工资#逆水寒cos\n\t\t\t1\n\t\t\t8046877030770906689_0_0_0_0_0\n\t\t\t0\n\t\t\tv2_060000231003b20faec8cae08b19c7d2c702e834b077fb74f482543ff67f0cc66363057a5443@finder\n\t\t\t\n\t\t\t0\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t4\n\t\t\t\t\thttp://wxapp.tc.qq.com/251/20302/stodownload?encfilekey=Cvvj5Ix3eez3Y79SxtvVL0L7CkPM6dFibFeI6caGYwFFDAZJzcvicKz3jic4UfNeiaWTwH9gTlYiafAxVkMZRXicBUBk2Ms7lauAj6SArUu0P9ddKiaa8IWZzYaaKLf1WddH4G8T0KicxQV3hQPH3pQgEMTscw&a=1&bizid=1023&dotrans=0&hy=SH&idx=1&m=4c4c7f3ed03a14a6b99d0d19176c12ac&upid=290110\n\t\t\t\t\thttp://wxapp.tc.qq.com/251/20304/stodownload?encfilekey=oibeqyX228riaCwo9STVsGLPj9UYCicgttvO59vjtcQ7Jviaia0q4bnpVP2ia7ibqzacPo0z4nIRtWom80ZXwL64icZO2q6ibVBQLZQftMwU3SHj5uplsIFroHeF0QNcCkXX3RtibaWCHJQjfqZUk&bizid=1023&dotrans=0&hy=SH&idx=1&m=7522250b4d15e5df866bf23da9f117d6&token=oA9SZ4icv8IssuhLtacX13nAzXiaf8y52juKW4ibUDN7a2vn71bbrCR0LZiabddvTsLLMvnELnuAwNxViclRT7wT9IyibzFw1pq9wdichRYaEmb6Js&ctsc=2-20\n\t\t\t\t\t1080\n\t\t\t\t\t1920\n\t\t\t\t\thttp://wxapp.tc.qq.com/251/20304/stodownload?encfilekey=oibeqyX228riaCwo9STVsGLPj9UYCicgttvO59vjtcQ7Jviaia0q4bnpVP2ia7ibqzacPo0z4nIRtWom80ZXwL64icZO2q6ibVBQLZQftMwU3SHj5uplsIFroHeF0QNcCkXX3RtibaWCHJQjfqZUk&bizid=1023&dotrans=0&hy=SH&idx=1&m=7522250b4d15e5df866bf23da9f117d6&token=oA9SZ4icv8IssuhLtacX13nAzXiaf8y52juKW4ibUDN7a2vn71bbrCR0LZiabddvTsLLMvnELnuAwNxViclRT7wT9IyibzFw1pq9wdichRYaEmb6Js&ctsc=2-20\n\t\t\t\t\thttp://wxapp.tc.qq.com/251/20350/stodownload?encfilekey=oibeqyX228riaCwo9STVsGLPj9UYCicgttv1FCQXwResqN75zI4n65zY5tkAficEPWbbClq2VcicqMYaSLK7nrAVMasrIhvsCXJib5cOLib98JgWPr4SP92W6YEkVN5Uv0TKAdyRryQ3Qxk7jU&bizid=1023&dotrans=0&hy=SH&idx=1&m=731b89683dd3cb866cdf96dab70ac183&token=KkOFht0mCXlnmicFbJnvymIJOEfZgzia8PY0ZzOdaIYTJXwfblvK4U1ibntribm1beupHwictGWs9hpMiclyhfSb6766Lnb3ib0j14bENm6u1tHpeo&ctsc=3-20\n\t\t\t\t\t10>>\n\t\t\t\t\n\t\t\t\n\t\t\n\t\n\twxid_phyyedw9xap22\n\t0\n\t\n\t\t1\n\t\t\n\t\n\t\n\n"
},
"Status": 3,
"ImgStatus": 1,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": 1705045057, 消息发送时间
"MsgSource": "\n\t\n\t\t\n\t\n\t\n\t\t4\n\t\n\t\n\t\tbb2cbd9d3290e7a3d35f183eaade2213_\n\t\n\tv1_+Tfo41HS\n\n",
"PushContent": "你收到了一条消息", 消息通知内容
"NewMsgId": 5576224237104747184, 消息ID
"MsgSeq": 640356115
}
}
```
#### 撤回消息
- 判断此类消息的逻辑:\$.Data.MsgType=10002 并且 解析\$.Data.Content.string中的xml sysmsg.type=revokemsg
```json
{
"TypeName": "AddMsg", 消息类型
"Appid": "wx_wR_U4zPj2M_OTS3BCyoE4", 设备ID
"Wxid": "wxid_phyyedw9xap22", 所属微信的wxid
"Data":
{
"MsgId": 1040356116, 消息ID
"FromUserName":
{
"string": "wxid_phyyedw9xap22" 消息发送人的wxid
},
"ToUserName":
{
"string": "wxid_0xsqb3o0tsvz22" 消息接收人的wxid
},
"MsgType": 10002,
"Content":
{
"string": "wxid_phyyedw9xap2210403561155576224237104747184"
},
"Status": 3,
"ImgStatus": 1,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": 1705045083, 消息发送时间
"MsgSource": "\n\t\n\t\t\n\t\n\n",
"NewMsgId": 1968256046, 消息ID
"MsgSeq": 640356116
}
}
```
#### 拍一拍消息
- 判断此类消息的逻辑:\$.Data.MsgType=10002 并且 解析\$.Data.Content.string中的xml sysmsg.type=pat
```json
{
"TypeName": "AddMsg", 消息类型
"Appid": "wx_wR_U4zPj2M_OTS3BCyoE4", 设备ID
"Wxid": "wxid_phyyedw9xap22", 所属微信的wxid
"Data":
{
"MsgId": 1040356117, 消息ID
"FromUserName":
{
"string": "wxid_phyyedw9xap22" 消息发送人的wxid
},
"ToUserName":
{
"string": "wxid_0xsqb3o0tsvz22" 消息接收人的wxid
},
"MsgType": 10002,
"Content":
{
"string": "\n\n wxid_phyyedw9xap22\n wxid_0xsqb3o0tsvz22\n wxid_0xsqb3o0tsvz22\n \n 0\n\n\n\n\n \n\n\n\n\n\n"
},
"Status": 3,
"ImgStatus": 1,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": 1705045115, 消息发送时间
"MsgSource": "\n\t\n\t\t\n\t\n\n",
"NewMsgId": 5709690173850254331, 消息ID
"MsgSeq": 640356117
}
}
```
#### 地理位置
```json
{
"TypeName": "AddMsg", 消息类型
"Appid": "wx_wR_U4zPj2M_OTS3BCyoE4", 设备ID
"Wxid": "wxid_phyyedw9xap22", 所属微信的wxid
"Data":
{
"MsgId": 1040356118, 消息ID
"FromUserName":
{
"string": "wxid_phyyedw9xap22" 消息发送人的wxid
},
"ToUserName":
{
"string": "wxid_0xsqb3o0tsvz22" 消息接收人的wxid
},
"MsgType": 48, 消息类型,48是地理位置消息
"Content":
{
"string": "\n\n\t\n\n"
},
"Status": 3,
"ImgStatus": 1,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": 1705045153, 消息发送时间
"MsgSource": "\n\t0\n\tv1_KgQA8C+H\n\t\n\t\t\n\t\n\n",
"PushContent": "朝夕。分享了一个地理位置", 消息通知内容
"NewMsgId": 2112726776406556053, 消息ID
"MsgSeq": 640356118
}
}
```
#### 群聊邀请
- 判断此类消息的逻辑:\$.Data.MsgType=49 并且 解析\$.Data.Content.string中的xml msg.appmsg.title=邀请你加入群聊(根据手机设置的系统语言title会有调整,不同语言关键字不同)
```json
{
"TypeName": "AddMsg", 消息类型
"Appid": "wx_wR_U4zPj2M_OTS3BCyoE4", 设备ID
"Wxid": "wxid_phyyedw9xap22", 所属微信的wxid
"Data":
{
"MsgId": 1040356119, 消息ID
"FromUserName":
{
"string": "wxid_phyyedw9xap22" 消息发送人的wxid
},
"ToUserName":
{
"string": "wxid_0xsqb3o0tsvz22" 消息接收人的wxid
},
"MsgType": 49,
"Content":
{
"string": "view500"
},
"Status": 3,
"ImgStatus": 0,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": 1705045206, 消息发送时间
"MsgSource": "\n\tv1_uHiWbihr\n\t\n\t\t\n\t\n\n",
"NewMsgId": 2331390497668538400, 消息ID
"MsgSeq": 640356119
}
}
```
#### 被移除群聊通知
- 判断此类消息的逻辑:\$.Data.MsgType=10000 并且 \$.Data.Content.string内容为移除群聊的通知内容
```json
{
"TypeName": "AddMsg", 消息类型
"Appid": "wx_wR_U4zPj2M_OTS3BCyoE4", 设备ID
"Wxid": "wxid_phyyedw9xap22", 所属微信的wxid
"Data":
{
"MsgId": 1040356153, 消息ID
"FromUserName":
{
"string": "39238473509@chatroom" 所在群聊的ID
},
"ToUserName":
{
"string": "wxid_0xsqb3o0tsvz22" 消息接收人的wxid
},
"MsgType": 10000,
"Content":
{
"string": "你被\"朝夕。\"移出群聊"
},
"Status": 4,
"ImgStatus": 1,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": 1705045790, 消息发送时间
"MsgSource": "\n\tv1_f7Xny9H/\n\t\n\t\t\n\t\n\n",
"NewMsgId": 5759605552965664254, 消息ID
"MsgSeq": 640356153
}
}
```
#### 踢出群聊通知
- 判断此类消息的逻辑:\$.Data.MsgType=10002 并且 解析\$.Data.Content.string中的xml sysmsg.type=sysmsgtemplate 并且 template中的内容为“你将xxx移出了群聊”(根据手机设置的系统语言template会有调整,不同语言关键字不同)
```json
{
"TypeName": "AddMsg", 消息类型
"Appid": "wx_wR_U4zPj2M_OTS3BCyoE4", 设备ID
"Wxid": "wxid_phyyedw9xap22", 所属微信的wxid
"Data":
{
"MsgId": 1040356143, 消息ID
"FromUserName":
{
"string": "34757816141@chatroom" 所在群聊的ID
},
"ToUserName":
{
"string": "wxid_0xsqb3o0tsvz22" 消息接收人的wxid
},
"MsgType": 10002,
"Content":
{
"string": "34757816141@chatroom:\n\n\t\n\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\n\n"
},
"Status": 4,
"ImgStatus": 1,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": 1705045666, 消息发送时间
"MsgSource": "\n\t\n\t\t\n\t\n\n",
"NewMsgId": 7100572668516374210, 消息ID
"MsgSeq": 640356143
}
}
```
#### 解散群聊通知
- 判断此类消息的逻辑:\$.Data.MsgType=10002 并且 解析\$.Data.Content.string中的xml sysmsg.type=sysmsgtemplate 并且 template中的内容为“群主xxx已解散该群聊”(根据手机设置的系统语言template会有调整,不同语言关键字不同)
```json
{
"TypeName": "AddMsg", 消息类型
"Appid": "wx_wR_U4zPj2M_OTS3BCyoE4", 设备ID
"Wxid": "wxid_phyyedw9xap22", 所属微信的wxid
"Data":
{
"MsgId": 1040356158, 消息ID
"FromUserName":
{
"string": "39238473509@chatroom" 所在群聊的ID
},
"ToUserName":
{
"string": "wxid_0xsqb3o0tsvz22" 消息接收人的wxid
},
"MsgType": 10002,
"Content":
{
"string": "39238473509@chatroom:\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n"
},
"Status": 4,
"ImgStatus": 1,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": 1705045834, 消息发送时间
"MsgSource": "\n\t\n\t\t\n\t\n\n",
"NewMsgId": 6869316888754169027, 消息ID
"MsgSeq": 640356158
}
}
```
#### 修改群名称
- 判断此类消息的逻辑:\$.Data.MsgType=10000 并且 \$.Data.Content.string为修改群名的通知内容
```json
{
"TypeName": "AddMsg", 消息类型
"Appid": "wx_wR_U4zPj2M_OTS3BCyoE4", 设备ID
"Wxid": "wxid_phyyedw9xap22", 所属微信的wxid
"Data":
{
"MsgId": 1040356129, 消息ID
"FromUserName":
{
"string": "34757816141@chatroom" 所在群聊的ID
},
"ToUserName":
{
"string": "wxid_0xsqb3o0tsvz22" 消息接收人的wxid
},
"MsgType": 10000,
"Content":
{
"string": "你修改群名为“GeWe test1”"
},
"Status": 4,
"ImgStatus": 1,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": 1705045517, 消息发送时间
"MsgSource": "\n\tv1_3uPmlxJG\n\t\n\t\t\n\t\n\n",
"NewMsgId": 6984814725261047392, 消息ID
"MsgSeq": 640356129
}
}
```
#### 更换群主通知
- 判断此类消息的逻辑:\$.Data.MsgType=10000 并且 \$.Data.Content.string为更换群主的通知内容
```json
{
"TypeName": "AddMsg", 消息类型
"Appid": "wx_wR_U4zPj2M_OTS3BCyoE4", 设备ID
"Wxid": "wxid_phyyedw9xap22", 所属微信的wxid
"Data":
{
"MsgId": 1040356125, 消息ID
"FromUserName":
{
"string": "34757816141@chatroom" 所在群聊的ID
},
"ToUserName":
{
"string": "wxid_0xsqb3o0tsvz22" 消息接收人的wxid
},
"MsgType": 10000,
"Content":
{
"string": "你已成为新群主"
},
"Status": 4,
"ImgStatus": 1,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": 1705045441, 消息发送时间
"MsgSource": "\n\tv1_iqIx6JkV\n\t\n\t\t\n\t\n\n",
"NewMsgId": 7268255507978211143, 消息ID
"MsgSeq": 640356125
}
}
```
#### 群信息变更通知
```json
{
"TypeName": "ModContacts", 消息类型
"Appid": "wx_wR_U4zPj2M_OTS3BCyoE4", 设备ID
"Wxid": "wxid_phyyedw9xap22", 所属微信的wxid
"Data":
{
"UserName":
{
"string": "34757816141@chatroom" 所在群聊的ID
},
"NickName":
{
"string": "GeWe test"
},
"PyInitial":
{
"string": "GEWETEST"
},
"QuanPin":
{
"string": "GeWetest"
},
"Sex": 0,
"ImgBuf":
{
"iLen": 0
},
"BitMask": 4294967295,
"BitVal": 2,
"ImgFlag": 1,
"Remark":
{},
"RemarkPyinitial":
{},
"RemarkQuanPin":
{},
"ContactType": 0,
"RoomInfoCount": 0,
"DomainList": [
{}],
"ChatRoomNotify": 1,
"AddContactScene": 0,
"PersonalCard": 0,
"HasWeiXinHdHeadImg": 0,
"VerifyFlag": 0,
"Level": 0,
"Source": 0,
"ChatRoomOwner": "wxid_0xsqb3o0tsvz22",
"WeiboFlag": 0,
"AlbumStyle": 0,
"AlbumFlag": 0,
"SnsUserInfo":
{
"SnsFlag": 0,
"SnsBgobjectId": 0,
"SnsFlagEx": 0
},
"CustomizedInfo":
{
"BrandFlag": 0
},
"AdditionalContactList":
{
"LinkedinContactItem":
{}
},
"ChatroomMaxCount": 700000019,
"DeleteFlag": 2,
"Description": "\b\u0004\u0012\u0017\n\u000Ewxid_phyyedw9xap220\u0001@\u0000�\u0001\u0000\u0012\u001B\n\u0012wxid_phyyedw9xap220\u0001@\u0000�\u0001\u0000\u0012\u001C\n\u0013wxid_0xsqb3o0tsvz220\u0001@\u0000�\u0001\u0000\u0012\u001D\n\u0013wxid_8pvka4jg6qzt220�\u0010@\u0000�\u0001\u0000\u0018\u0001\"\u0000(\u00008\u0000",
"ChatroomStatus": 27,
"Extflag": 0,
"ChatRoomBusinessType": 0
}
}
```
#### 发布群公告
- 判断此类消息的逻辑:\$.Data.MsgType=10002 并且 解析\$.Data.Content.string中的xml sysmsg.type=mmchatroombarannouncememt
```json
{
"TypeName": "AddMsg", 消息类型
"Appid": "wx_wR_U4zPj2M_OTS3BCyoE4", 设备ID
"Wxid": "wxid_phyyedw9xap22", 所属微信的wxid
"Data":
{
"MsgId": 1040356133, 消息ID
"FromUserName":
{
"string": "wxid_0xsqb3o0tsvz22" 发布人的wxid
},
"ToUserName":
{
"string": "34757816141@chatroom" 所在群聊的ID
},
"MsgType": 10002,
"Content":
{
"string": "\n \n \n \n\t1705045558\n\t127\n\t1\n\t\n\t\twxid_0xsqb3o0tsvz22\n\t\t34757816141@chatroom\n\t\t7c79fed82a0037648954bba6d5ca2025\n\t\n\t\n\t\n\t\t\n\t\t\t-1\n\t\t\n\t\n\twxid_0xsqb3o0tsvz22_34757816141@chatroom_1705045558_2028281562\n\n]]>\n \n \n"
},
"Status": 3,
"ImgStatus": 1,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": 1705045559, 消息发送时间
"MsgSource": "\n\t\n\t\t\n\t\n\n",
"NewMsgId": 8056409355261218186, 消息ID
"MsgSeq": 640356133
}
}
```
#### 群待办
- 判断此类消息的逻辑:\$.Data.MsgType=10002 并且 解析\$.Data.Content.string中的xml sysmsg.type=roomtoolstips
```json
{
"TypeName": "AddMsg", 消息类型
"Appid": "wx_wR_U4zPj2M_OTS3BCyoE4", 设备ID
"Wxid": "wxid_phyyedw9xap22", 所属微信的wxid
"Data":
{
"MsgId": 1040356135, 消息ID
"FromUserName":
{
"string": "34757816141@chatroom" 所在群聊的ID
},
"ToUserName":
{
"string": "wxid_0xsqb3o0tsvz22"
},
"MsgType": 10002,
"Content":
{
"string": "34757816141@chatroom:\n\n\n 0\n\n \n \n \n \n \n \n \n \n \n 0\n \n \n \n \n\n\n \n\n\n \n \n \n \n \n \n \n\n \n\n \n\n\n"
},
"Status": 4,
"ImgStatus": 1,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": 1705045591, 消息发送时间
"MsgSource": "\n\t\n\t\t\n\t\n\n",
"NewMsgId": 1765700414095721113, 消息ID
"MsgSeq": 640356135
}
}
```
#### 删除好友通知
```json
{
"TypeName": "DelContacts", 消息类型
"Appid": "wx_wR_U4zPj2M_OTS3BCyoE4", 设备ID
"Wxid": "wxid_phyyedw9xap22", 所属微信的wxid
"Data":
{
"UserName":
{
"string": "wxid_phyyedw9xap22" 删除的好友wxid
},
"DeleteContactScen": 0
}
}
```
#### 退出群聊
```json
{
"TypeName": "DelContacts", 消息类型
"Appid": "wx_wR_U4zPj2M_OTS3BCyoE4", 设备ID
"Wxid": "wxid_phyyedw9xap22", 所属微信的wxid
"Data":
{
"UserName":
{
"string": "34559815390@chatroom" 退出的群聊ID
},
"DeleteContactScen": 0
}
}
```
#### 掉线通知
```json
{
"TypeName": "Offline", 消息类型
"Appid": "wx_wR_U4zPj2M_OTS3BCyoE4", 设备ID
"Wxid": "wxid_phyyedw9xap22" 掉线号的wxid
}
```