Appearance
用户直播间领取红包推送
推送参数
暂时仅限普通、区域、红包雨和口令红包类型;其他默认推送参数文档,参考消息推送-使用说明
参数 | 必选 | 类型 | 描述 |
---|---|---|---|
msg_type | 是 | string | 消息类型:event-事件 |
event | 是 | string | 事件类型 :envelopeRob--领取红包 |
data | 是 | object | 消息内容 |
data
参数结构
参数 | 必选 | 类型 | 描述 |
---|---|---|---|
room_id | 是 | string | 直播间id |
wechat_user_space_id | 是 | string | 用户ID |
name | 是 | string | 用户昵称 |
photo | 是 | string | 用户头像 |
third_wechat_info | 否 | array | 客户公众号下用户信息 |
third_user_info | 否 | object | 客户系统下用户信息 |
envelope | 否 | object | 红包信息 |
third_wechat_info
参数结构
参数 | 必选 | 类型 | 描述 |
---|---|---|---|
authorizer_appid | 是 | string | 客户公众号appid |
openid | 是 | string | 客户openid |
unionid | 否 | string | 客户unionid |
third_user_info
参数结构
参数 | 必选 | 类型 | 描述 |
---|---|---|---|
third_uuid | 是 | string | 客户系统用户ID |
third_attach | 是 | string | 客户系统用户附属信息。json字符串 |
envelope
参数结构
参数 | 必选 | 类型 | 描述 |
---|---|---|---|
envelope_send_info | 是 | object | 发红包信息 |
envelope_rob_info | 是 | object | 抢红包信息 |
rob_amount | 是 | string | 抢到的红包金额 |
envelope_send_info
参数结构
参数 | 必选 | 类型 | 描述 |
---|---|---|---|
id | 是 | string | 发红包id |
room_id | 是 | string | 直播间id |
uid | 是 | string | uid |
wechat_user_space_id | 否 | string | 诺云侧用户id |
name | 否 | string | 发红包的用户名称 |
photo | 否 | string | 发红包的用户头像 |
create_time | 是 | string | 发红包时间 |
type | 是 | string | 红包类型 |
envelopext | 否 | string | 红包扩展信息 |
type_cn | 否 | string | 红包类型 |
envelope_rob_info
参数结构
参数 | 必选 | 类型 | 描述 |
---|---|---|---|
id | 是 | string | 抢红包id |
eid | 是 | string | 发红包id |
amount | 是 | string | 抢到红包的金额 |
create_time | 是 | string | 记录创建时间 |
rob_name | 否 | string | 抢红包的用户名称 |
rob_photo | 否 | string | 抢红包的用户头像 |
type | 是 | string | 红包类型 |
pick_up_time | 是 | string | 抢红包时间 |
推送示例
{
"key":"ny6aec68a94xxx",
"timestamp":"1699149777000",
"sign":"697a963c7768xxx",
"msg_id":"2177E51538CC00xxx",
"msg_type":"event",
"event":"visitRoom",
"push_msg_url":"https://xxx.nuoyun.tv/xxx",
"data":{
"room_id":"6897xxx",
"wechat_user_space_id":"20401xx",
"name":"小趴xx",
"photo":"https://nyfs-alpha.oss-cn-hangzhou.aliyuncs.com/Uploads/WxHeaxxxx",
"third_wechat_info":[
{
"authorizer_appid":"wxc277bd41d8xxx",
"openid":"oKFTf0SGJMuBSaQwBnxxx",
"unionid":"o8-ysvzW-BYxHbxxx"
}
],
"envelope": {
"envelope_send_info": {
"id": "20696",
"room_id": "1700241152",
"uid": "28946",
"wechat_user_space_id": "1613694",
"name": "\u968f\u559c",
"photo": "https:\/\/nyfs-alpha.oss-cn-hangzhou.aliyuncs.com\/Uploads\/WxHeadImg2023\/DF81\/7CEED202C1877609DEB3EB288EAADF81.jpg",
"create_time": "2025-05-26 10:38:42",
"type": "1",
"envelopext": null,
"type_cn": "\u666e\u901a\u5b9e\u65f6\u7ea2\u5305"
},
"envelope_rob_info": {
"id": "315468",
"eid": "20696",
"amount": "1.64",
"create_time": "2025-05-26 10:38:52",
"rob_name": "\u968f\u559c",
"rob_photo": "https:\/\/nyfs-alpha.oss-cn-hangzhou.aliyuncs.com\/Uploads\/WxHeadImg2023\/DF81\/7CEED202C1877609DEB3EB288EAADF81.jpg",
"type": "1",
"pick_up_time": "2025-05-26 10:38:52"
},
"rob_amount": "1.64"
},
}
}