内购&订阅项V2
请求URL:
/rechargePurchaseListV2
请求方式:
- POST
参数:
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| appId | 是 | string | 应用包appId |
| udid | 是 | string | 设备ID |
返回示例
{
"code": 200,
"msg": "SUCCESS",
"data": {
"creditPage": {
"purchaseList": [
{
"id": 120,
"price": 999,
"amount": 500,
"giftAmount": 0,
"productId": "500.picsh.cre",
"limitBuy": 0,
"type": 0,
"pageType": 1,
"originalPrice": 999,
"createdAt": 1773387988,
"updatedAt": 1781245201
},
{
"id": 121,
"price": 1699,
"amount": 1000,
"giftAmount": 0,
"productId": "1000.picsh.cre",
"limitBuy": 0,
"type": 0,
"pageType": 1,
"originalPrice": 1699,
"createdAt": 1773387988,
"updatedAt": 1781245201
},
{
"id": 122,
"price": 3999,
"amount": 3000,
"giftAmount": 0,
"productId": "3000.picsh.cre",
"limitBuy": 0,
"type": 0,
"pageType": 1,
"originalPrice": 3999,
"createdAt": 1773387988,
"updatedAt": 1781245203
},
{
"id": 123,
"price": 5999,
"amount": 5000,
"giftAmount": 0,
"productId": "5000.picsh.cre",
"limitBuy": 0,
"type": 1,
"pageType": 1,
"originalPrice": 5999,
"createdAt": 1773387988,
"updatedAt": 1781245204
}
],
"subscribeList": [
{
"id": 123,
"price": 799,
"originPrice": 799,
"originPriceNew": 0,
"amount": 1000,
"amountNew": 0,
"giftAmount": 0,
"productId": "week.picsh.cp",
"isShow": 1,
"type": 8,
"pageType": 1,
"group": 2,
"discountPeriod": 0,
"freeTryDays": 0,
"createdAt": 1773387978,
"updatedAt": 1781245167,
"subscriptionPeriod": "First week",
"averagePriceWeek": 0,
"averagePriceDay": 0,
"purchaseCount": 0
},
{
"id": 124,
"price": 1299,
"originPrice": 1299,
"originPriceNew": 0,
"amount": 1500,
"amountNew": 0,
"giftAmount": 0,
"productId": "week.picsh.up",
"isShow": 1,
"type": 9,
"pageType": 1,
"group": 2,
"discountPeriod": 0,
"freeTryDays": 0,
"createdAt": 1773387978,
"updatedAt": 1781245187,
"subscriptionPeriod": "First week",
"averagePriceWeek": 0,
"averagePriceDay": 0,
"purchaseCount": 0
}
]
},
"discountPage": {
"discount": {
"id": 122,
"price": 499,
"originPrice": 799,
"originPriceNew": 0,
"amount": 250,
"amountNew": 0,
"giftAmount": 0,
"productId": "week.picsh.sub.49",
"isShow": 1,
"type": 0,
"pageType": 6,
"group": 1,
"discountPeriod": 2,
"freeTryDays": 0,
"createdAt": 1773387975,
"updatedAt": 1781245155,
"subscriptionPeriod": "First week",
"averagePriceWeek": 0,
"averagePriceDay": 0,
"purchaseCount": 0
}
},
"secretPage": {
"secret": {
"id": 121,
"price": 399,
"originPrice": 799,
"originPriceNew": 0,
"amount": 250,
"amountNew": 0,
"giftAmount": 0,
"productId": "week.picsh.sub.39",
"isShow": 1,
"type": 0,
"pageType": 5,
"group": 1,
"discountPeriod": 2,
"freeTryDays": 0,
"createdAt": 1773387974,
"updatedAt": 1781245136,
"subscriptionPeriod": "First week",
"averagePriceWeek": 0,
"averagePriceDay": 0,
"purchaseCount": 0
}
},
"subscribePage": {
"trial": {
"id": 312,
"price": 0,
"originPrice": 999,
"originPriceNew": 0,
"amount": 250,
"amountNew": 0,
"giftAmount": 0,
"productId": "week.picsh.trl",
"isShow": 1,
"type": 0,
"pageType": 4,
"group": 3,
"discountPeriod": 0,
"freeTryDays": 3,
"createdAt": 1781245469,
"updatedAt": 1781245469,
"subscriptionPeriod": "First week",
"averagePriceWeek": 0,
"averagePriceDay": 0,
"purchaseCount": 0
},
"weekly": {
"id": 119,
"price": 799,
"originPrice": 799,
"originPriceNew": 0,
"amount": 250,
"amountNew": 0,
"giftAmount": 0,
"productId": "week.picsh.sub",
"isShow": 1,
"type": 0,
"pageType": 2,
"group": 1,
"discountPeriod": 0,
"freeTryDays": 0,
"createdAt": 1773387974,
"updatedAt": 1781244979,
"subscriptionPeriod": "First week",
"averagePriceWeek": 0,
"averagePriceDay": 0,
"purchaseCount": 0
},
"yearly": {
"id": 120,
"price": 4999,
"originPrice": 4999,
"originPriceNew": 0,
"amount": 250,
"amountNew": 0,
"giftAmount": 0,
"productId": "year.picsh.sub",
"isShow": 1,
"type": 1,
"pageType": 3,
"group": 1,
"discountPeriod": 0,
"freeTryDays": 0,
"createdAt": 1773387974,
"updatedAt": 1781245001,
"subscriptionPeriod": "Yearly",
"averagePriceWeek": 96,
"averagePriceDay": 14,
"purchaseCount": 0
}
}
}
}
返回参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码 |
| msg | string | 提示信息 |
| data | struct | 数据 |
| -creditPage | 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 |
| -discountPage | struct | 折扣页 |
| -secretPage | struct | |
| -subscribePage | struct |
备注