Appearance
直播状态变更
推送参数
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| type | 是 | string | 推送类型:alive_state_change |
| app_id | 是 | string | 店铺id |
| message_id | 是 | string | 消息ID |
| retry_times | 是 | int | 重试次数 |
| xe_data | 是 | Object | 业务数据 |
xe_data 参数结构
| 参数名 | 类型 | 说明 |
|---|---|---|
| app_id | String | 店铺id |
| action | string | 事件类型:固定 change |
| data | string | 商品变更推送标题 |
| data.alive_id | string | 直播id |
| data.change_time | string | 数据库变更时间 |
| data.cur_status | int | 当前直播状态,其中 0:未开始 1:直播中 2:已结束 |
| data.pre_status | int | 上一次推送时的直播状态,其中 0:未开始 1:直播中 2:已结束 |
| data.push_time | string | 消息推送时间 |
推送解密后示
<doc>
<app_id>appvej9rzl01779</app_id>
<message_id>20240614_1801504027527700480</message_id>
<retry_times>0</retry_times>
<type>alive_state_change</type>
<xe_data>
<action>change</action> #固定 change
<app_id>appvej9rzl01779</app_id>
<data>
<alive_id>l_666bb380e4b0a287e69e51be</alive_id> #直播id
<change_time>2024-06-14 14:36:45</change_time> #数据库变更时间
<cur_status>2</cur_status> #当前直播状态,其中 0:未开始 1:直播中 2:已结束
<pre_status>1</pre_status> #上一次推送时的直播状态,其中 0:未开始 1:直播中 2:已结束
<push_time>2024-06-14 14:36:45</push_time> #消息推送时间
</data>
</xe_data>
</doc>