内购&订阅项
请求URL:
/rechargePackage
请求方式:
- POST
参数:
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| appType | 是 | int | 应用包分类 |
| appId | 是 | string | 应用包appId |
| udid | 是 | string | 设备ID |
返回示例
{
"code": 200,
"msg": "SUCCESS",
"data": {
"purchase": [
{
"id": 1,
"appType": 2,
"appId": "8e7351e-10cfda-aichat-aishmin-ios",
"price": 500,
"originalPrice": 0,
"productId": "test.1000",
"limitBuy": 0,
"type": 1,
"isShow": 1,
"boxId": 2,
"createdAt": "2026-09-22T06:24:47Z",
"updatedAt": "2026-10-20T06:26:55Z"
},
{
"id": 2,
"appType": 2,
"appId": "8e7351e-10cfda-aichat-aishmin-ios",
"price": 2000,
"originalPrice": 0,
"productId": "test.2000",
"limitBuy": 0,
"type": 1,
"isShow": 1,
"boxId": 0,
"createdAt": "2026-10-20T06:26:43Z",
"updatedAt": "2026-10-20T06:26:43Z"
},
{
"id": 3,
"appType": 2,
"appId": "8e7351e-10cfda-aichat-aishmin-ios",
"price": 10000,
"originalPrice": 0,
"productId": "test.3000",
"limitBuy": 0,
"type": 1,
"isShow": 1,
"boxId": 0,
"createdAt": "2026-10-20T06:27:25Z",
"updatedAt": "2026-10-20T06:27:25Z"
}
]
}
}
返回参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码 |
| msg | string | 提示信息 |
| data | struct | 数据 |
| -purchase | Array | 内购列表 |
| --id | uint | 套餐ID |
| --price | uint | 套餐价格(单位:分) |
| --productId | string | 支付产品ID |
| --limitBuy | uint | 是否首充限购:0-否;1-是 |
| -subscribe | array | 订阅项) |
| --id | int | 套餐ID |
| --price | uint | 套餐价格(单位:分) |
| --productId | string | 支付产品ID |
| --limitBuy | uint | 是否首充限购:0-否;1-是 |
备注