充值套餐(新版)
请求URL:
/rechargePackageNew
请求方式:
- POST
参数:
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| appId | 是 | string | App唯一标识 |
| udid | 是 | string | 唯一设备ID |
| limitBuy | 否 | uint | 是否首充限购:0-否;1-是 |
返回示例
{
"code": 200,
"msg": "SUCCESS",
"data": {
"plan1": [
{
"id": 133,
"price": 198,
"amount": 65,
"giftAmount": 0,
"amountFestival": 0,
"giftAmountFestival": 0,
"productId": "com.coupleuai.chat.app.9",
"limitBuy": 0,
"type": 1,
"channel": 0,
"originalPrice": 198,
"createdAt": 1766962664,
"updatedAt": 1766963296,
"discount": 0
},
{
"id": 147,
"price": 199,
"amount": 130,
"giftAmount": 0,
"amountFestival": 0,
"giftAmountFestival": 0,
"productId": "com.coupleuai.chat.app.21",
"limitBuy": 1,
"type": 0,
"channel": 0,
"originalPrice": 199,
"createdAt": 1767028353,
"updatedAt": 1767028385,
"discount": 85
},
{
"id": 141,
"price": 399,
"amount": 130,
"giftAmount": 0,
"amountFestival": 0,
"giftAmountFestival": 0,
"productId": "com.coupleuai.chat.app.15",
"limitBuy": 0,
"type": 0,
"channel": 0,
"originalPrice": 399,
"createdAt": 1766971376,
"updatedAt": 1766971376,
"discount": 0
},
{
"id": 134,
"price": 489,
"amount": 170,
"giftAmount": 0,
"amountFestival": 0,
"giftAmountFestival": 0,
"productId": "com.coupleuai.chat.app.10",
"limitBuy": 0,
"type": 0,
"channel": 0,
"originalPrice": 489,
"createdAt": 1766962664,
"updatedAt": 1766963166,
"discount": 0
},
{
"id": 135,
"price": 499,
"amount": 200,
"giftAmount": 0,
"amountFestival": 0,
"giftAmountFestival": 0,
"productId": "com.coupleuai.chat.app.11",
"limitBuy": 1,
"type": 0,
"channel": 0,
"originalPrice": 499,
"createdAt": 1766963085,
"updatedAt": 1766963292,
"discount": 85
},
{
"id": 136,
"price": 989,
"amount": 350,
"giftAmount": 0,
"amountFestival": 0,
"giftAmountFestival": 0,
"productId": "com.coupleuai.chat.app.12",
"limitBuy": 0,
"type": 0,
"channel": 0,
"originalPrice": 998,
"createdAt": 1766963085,
"updatedAt": 1766970089,
"discount": 0
},
{
"id": 140,
"price": 999,
"amount": 400,
"giftAmount": 0,
"amountFestival": 0,
"giftAmountFestival": 0,
"productId": "com.coupleuai.chat.app.14",
"limitBuy": 1,
"type": 0,
"channel": 0,
"originalPrice": 999,
"createdAt": 1766970061,
"updatedAt": 1766970064,
"discount": 0
},
{
"id": 143,
"price": 1999,
"amount": 800,
"giftAmount": 0,
"amountFestival": 0,
"giftAmountFestival": 0,
"productId": "com.coupleuai.chat.app.17",
"limitBuy": 0,
"type": 0,
"channel": 0,
"originalPrice": 1999,
"createdAt": 1766971459,
"updatedAt": 1766971473,
"discount": 0
},
{
"id": 144,
"price": 2999,
"amount": 1300,
"giftAmount": 0,
"amountFestival": 0,
"giftAmountFestival": 0,
"productId": "com.coupleuai.chat.app.18",
"limitBuy": 0,
"type": 0,
"channel": 0,
"originalPrice": 2999,
"createdAt": 1766971532,
"updatedAt": 1766971532,
"discount": 85
},
{
"id": 145,
"price": 4999,
"amount": 2400,
"giftAmount": 0,
"amountFestival": 0,
"giftAmountFestival": 0,
"productId": "com.coupleuai.chat.app.19",
"limitBuy": 0,
"type": 0,
"channel": 0,
"originalPrice": 4999,
"createdAt": 1766971578,
"updatedAt": 1766971583,
"discount": 85
},
{
"id": 148,
"price": 8999,
"amount": 4500,
"giftAmount": 0,
"amountFestival": 0,
"giftAmountFestival": 0,
"productId": "com.coupleuai.chat.app.22",
"limitBuy": 0,
"type": 0,
"channel": 0,
"originalPrice": 8999,
"createdAt": 1767028468,
"updatedAt": 1767028468,
"discount": 85
},
{
"id": 137,
"price": 19999,
"amount": 10000,
"giftAmount": 0,
"amountFestival": 0,
"giftAmountFestival": 0,
"productId": "com.coupleuai.chat.app.13",
"limitBuy": 0,
"type": 0,
"channel": 0,
"originalPrice": 19999,
"createdAt": 1766963209,
"updatedAt": 1766963507,
"discount": 85
}
],
"plan2": [
{
"id": 147,
"price": 199,
"amount": 130,
"giftAmount": 0,
"amountFestival": 0,
"giftAmountFestival": 0,
"productId": "com.coupleuai.chat.app.21",
"limitBuy": 1,
"type": 0,
"channel": 0,
"originalPrice": 199,
"createdAt": 1767028353,
"updatedAt": 1767028385,
"discount": 0
},
{
"id": 141,
"price": 399,
"amount": 130,
"giftAmount": 0,
"amountFestival": 0,
"giftAmountFestival": 0,
"productId": "com.coupleuai.chat.app.15",
"limitBuy": 0,
"type": 0,
"channel": 0,
"originalPrice": 399,
"createdAt": 1766971376,
"updatedAt": 1766971376,
"discount": 0
},
{
"id": 142,
"price": 999,
"amount": 360,
"giftAmount": 0,
"amountFestival": 0,
"giftAmountFestival": 0,
"productId": "com.coupleuai.chat.app.16",
"limitBuy": 0,
"type": 0,
"channel": 0,
"originalPrice": 999,
"createdAt": 1766971406,
"updatedAt": 1766972971,
"discount": 0
},
{
"id": 143,
"price": 1999,
"amount": 800,
"giftAmount": 0,
"amountFestival": 0,
"giftAmountFestival": 0,
"productId": "com.coupleuai.chat.app.17",
"limitBuy": 0,
"type": 0,
"channel": 0,
"originalPrice": 1999,
"createdAt": 1766971459,
"updatedAt": 1766971473,
"discount": 0
},
{
"id": 144,
"price": 2999,
"amount": 1300,
"giftAmount": 0,
"amountFestival": 0,
"giftAmountFestival": 0,
"productId": "com.coupleuai.chat.app.18",
"limitBuy": 0,
"type": 0,
"channel": 0,
"originalPrice": 2999,
"createdAt": 1766971532,
"updatedAt": 1766971532,
"discount": 0
},
{
"id": 138,
"price": 3999,
"amount": 1800,
"giftAmount": 0,
"amountFestival": 0,
"giftAmountFestival": 0,
"productId": "com.coupleuai.chat.app.6",
"limitBuy": 0,
"type": 0,
"channel": 0,
"originalPrice": 3999,
"createdAt": 1766963209,
"updatedAt": 1766963508,
"discount": 0
},
{
"id": 146,
"price": 4999,
"amount": 2800,
"giftAmount": 0,
"amountFestival": 0,
"giftAmountFestival": 0,
"productId": "com.coupleuai.chat.app.20",
"limitBuy": 0,
"type": 0,
"channel": 0,
"originalPrice": 4999,
"createdAt": 1766971578,
"updatedAt": 1766971583,
"discount": 0
}
]
}
}
返回参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码 |
| msg | string | 提示信息 |
| data | map | 数据映射 |
| plan1 | array | 数据列表 |
| --id | uint | 套餐ID |
| --price | uint | 套餐价格(单位:分) |
| --amount | uint | 钻石数 |
| --giftAmount | uint | 附赠钻石数 |
| --productId | string | 支付产品ID |
| --limitBuy | uint | 是否首充限购:0-否;1-是 |
| --type | uint | 1-First charge;2-Recommend;4-Best deal |
| --originalPrice | uint | 套餐原价格(单位:分) |
| --discount | uint | 折扣(整数) |
备注