充值套餐
请求URL:
/rechargePackage
请求方式:
- POST
参数:
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| limitBuy | 否 | uint | 是否首充限购:0-否;1-是 |
返回示例
{
"code": 200,
"msg": "SUCCESS",
"data": [
{
"id": 4,
"price": 799,
"originPrice": 799,
"productId": "com.live.vwlive.vip.week",
"isShow": 1,
"type": 0,
"cycle": 1,
"createdAt": 1753428411,
"updatedAt": 1756876750
},
{
"id": 5,
"price": 1299,
"originPrice": 1499,
"productId": "com.live.vwlive.vip.month",
"isShow": 1,
"type": 0,
"cycle": 2,
"createdAt": 1753428411,
"updatedAt": 1756876750
},
{
"id": 6,
"price": 2499,
"originPrice": 2999,
"productId": "com.live.vwlive.vip.year",
"isShow": 1,
"type": 1,
"cycle": 3,
"createdAt": 1753428411,
"updatedAt": 1756876751
}
]
}
返回参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码 |
| msg | string | 提示信息 |
| data | 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 |
| -cycle | uint8 | 1-week;2-month;3-year |
| -originalPrice | uint | 套餐原价格(单位:分) |
备注