内购&订阅项
请求URL:
/rechargePurchaseList
请求方式:
- POST
参数:
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| appId | 是 | string | 应用包appId |
| udid | 是 | string | 设备ID |
返回示例
{
"code": 200,
"msg": "SUCCESS",
"data": {
"purchaseList": [
{
"id": 38,
"price": 99,
"amount": 50,
"giftAmount": 0,
"productId": "com.bunnyvid.cons.50",
"limitBuy": 0,
"type": 0,
"originalPrice": 99,
"createdAt": 1761761662,
"updatedAt": 1761761799
},
{
"id": 39,
"price": 399,
"amount": 1000,
"giftAmount": 0,
"productId": "com.bunnyvid.cons.1k",
"limitBuy": 0,
"type": 0,
"originalPrice": 399,
"createdAt": 1761761662,
"updatedAt": 1761761799
},
{
"id": 40,
"price": 999,
"amount": 3000,
"giftAmount": 0,
"productId": "com.bunnyvid.cons.3k",
"limitBuy": 0,
"type": 0,
"originalPrice": 999,
"createdAt": 1761761662,
"updatedAt": 1761761800
},
{
"id": 76,
"price": 999,
"amount": 500,
"giftAmount": 0,
"productId": "com.bunnyvid.cons.500.t",
"limitBuy": 0,
"type": 0,
"originalPrice": 999,
"createdAt": 1761761662,
"updatedAt": 1761761800
},
{
"id": 73,
"price": 1699,
"amount": 1000,
"giftAmount": 0,
"productId": "com.bunnyvid.cons.1000.t",
"limitBuy": 0,
"type": 0,
"originalPrice": 1699,
"createdAt": 1761761662,
"updatedAt": 1761761800
},
{
"id": 41,
"price": 1999,
"amount": 5000,
"giftAmount": 0,
"productId": "com.bunnyvid.cons.5k",
"limitBuy": 0,
"type": 0,
"originalPrice": 1999,
"createdAt": 1761761662,
"updatedAt": 1761761800
},
{
"id": 42,
"price": 3999,
"amount": 10000,
"giftAmount": 0,
"productId": "com.bunnyvid.cons.10k",
"limitBuy": 0,
"type": 0,
"originalPrice": 3999,
"createdAt": 1761761662,
"updatedAt": 1761761800
},
{
"id": 74,
"price": 3999,
"amount": 1000,
"giftAmount": 0,
"productId": "com.bunnyvid.cons.3000.t",
"limitBuy": 0,
"type": 0,
"originalPrice": 3999,
"createdAt": 1761761662,
"updatedAt": 1761761800
},
{
"id": 75,
"price": 5999,
"amount": 5000,
"giftAmount": 0,
"productId": "com.bunnyvid.cons.5000.t",
"limitBuy": 0,
"type": 0,
"originalPrice": 5999,
"createdAt": 1761761662,
"updatedAt": 1761761800
}
],
"subscribeList": [
{
"id": 28,
"price": 399,
"originPrice": 799,
"amount": 0,
"giftAmount": 0,
"productId": "com.bunnyvid.sub.week.promo",
"isShow": 1,
"type": 0,
"group": 1,
"createdAt": 1761761196,
"updatedAt": 1761761196,
"subscriptionPeriod": "Weekly",
"averagePriceWeek": 399,
"averagePriceDay": 57,
"purchaseCount": 1
},
{
"id": 26,
"price": 799,
"originPrice": 799,
"amount": 0,
"giftAmount": 0,
"productId": "com.bunnyvid.sub.week",
"isShow": 1,
"type": 0,
"group": 1,
"createdAt": 1761761196,
"updatedAt": 1761761521,
"subscriptionPeriod": "Weekly",
"averagePriceWeek": 799,
"averagePriceDay": 114,
"purchaseCount": 1
},
{
"id": 27,
"price": 4999,
"originPrice": 4999,
"amount": 0,
"giftAmount": 0,
"productId": "com.bunnyvid.sub.year",
"isShow": 1,
"type": 0,
"group": 1,
"createdAt": 1761761196,
"updatedAt": 1761761196,
"subscriptionPeriod": "Yearly",
"averagePriceWeek": 96,
"averagePriceDay": 14,
"purchaseCount": 3
}
]
}
}
返回参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码 |
| msg | string | 提示信息 |
| data | struct | 数据 |
| -purchaseList | Array | 内购列表 |
| --id | uint | 套餐ID |
| --price | uint | 套餐价格(单位:分) |
| --amount | uint | 钻石数 |
| --giftAmount | uint | 附赠钻石数 |
| --productId | string | 支付产品ID |
| --limitBuy | uint | 是否首充限购:0-否;1-是 |
| --type | uint | 1-First charge;2-Recommend;3-Hot;4-Best deal;7-打折 |
| --cycle | uint8 | 1-week;2-month;3-year |
| --originalPrice | uint | 套餐原价格(单位:分) |
| -subscribeList | array | 订阅项) |
| --id | int | 套餐ID |
| --price | int | 套餐价格(单位:美分) |
| --productId | string | 产品ID |
| --averagePriceWeek | float32 | 每周均价 |
| --averagePriceDay | float32 | 每天均价 |
| --subscriptionPeriod | string | 订阅周期 |
| --purchaseCount | int | 已购买次数 |
| --amount | int | 钻石数(购买立得,后续每周发放) |
| --giftAmount | int | 附赠钻石数((购买立得,后续每周发放)) |
| --type | uint | 1-推荐;8-creatorpack;9-ultrapack |
备注