Appearance
权益变更推送
| 拥有此API的权限集并订阅此消息推送 |
|---|
| 订购管理-查询 |
推送参数
| 参数名 | 是否必传 | 类型 | 说明 |
|---|---|---|---|
| type | 是 | String | 推送类型:role_change |
| app_id | 是 | String | 店铺id |
| message_id | 是 | String | 消息ID |
| retry_times | 是 | int | 重试次数 |
| xe_data | 是 | Object | 业务数据 |
xe_data 参数结构
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| change_time | 是 | String | 权益变更时间 |
| end_date | 是 | String | 到期时间 |
| app_id | 是 | String | 店铺id |
| resource_id | 是 | String | 课程资源id |
| subject | 是 | String | 用户id ,virtual_group-此资源为免费课 |
| source | 是 | String | 权益来源:password(输入正确加密课密码获得的权益),activity-receive(活动领取获得的权益),friends-gift(通过送好友获得的权益),purchase(订购获得的权益),import(B端管理台导入获得的权益) |
| state | 是 | String | 状态: 1-添加权益 0-删除权益 |
特殊说明
推送条件:当用户的课程权益变更时,会触发权益变更消息推送。
推送解密后示
<type>role_change</type>
<app_id>appAKLWLitnxxxx</app_id>
<message_id>20230615_1669013687304xxxxxx</message_id>
<retry_times>0</retry_times>
<xe_data>
<app_id>appAKLWLitnxxxx</app_id>
<change_time>2023-01-10 17:37:54</change_time>
<end_date/>
<resource_id>p_622ea319e4b04d7e2xxxxxx</resource_id>
<source>purchase</source>
<state>1</state>
<subject>u_618dbfa7b58fd_y5PyGxxxxx</subject>
</xe_data>