Appearance
用户观看奖励领取优惠券推送
推送参数
其他默认推送参数文档,参考消息推送-使用说明
参数 | 必选 | 类型 | 描述 |
---|---|---|---|
msg_type | 是 | string | 消息类型:event-事件 |
event | 是 | string | 事件类型 :getCoupon--领取优惠券 |
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 | 客户系统下用户信息 |
coupon_info | 否 | 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字符串 |
coupon_info
参数结构
参数 | 必选 | 类型 | 描述 |
---|---|---|---|
coupon_id | 是 | number | 优惠券ID |
discount_money | 是 | number | 折扣金额 |
card_no | 是 | string | 优惠券码 |
start_time | 是 | number | 优惠券使用开始时间 |
end_time | 是 | number | 优惠券使用结束时间 |
gtime | 是 | number | 优惠券领取时间 |
推送示例
{
"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"
}
],
"coupon_info":{
"coupon_id":1122,
"discount_money":2.5,
"card_no":"1903298392",
"start_time":1747018302,
"end_time":1747018302,
"gtime":1747018302,
}
}
}