订阅&内购项

请求URL:

  • /rechargePurchaseList

请求方式:

  • POST

参数:

参数名 必选 类型 说明
appId string 应用包appId
udid string 设备ID

返回示例

{
    "code": 200,
    "msg": "SUCCESS",
    "data": {
        "purchaseList": [
            {
                "id": 48,
                "price": 999,
                "amount": 500,
                "giftAmount": 0,
                "productId": "snapvideo.iap.500",
                "limitBuy": 0,
                "type": 0,
                "originalPrice": 999,
                "createdAt": 1763345214,
                "updatedAt": 1763345214
            },
            {
                "id": 49,
                "price": 1699,
                "amount": 1000,
                "giftAmount": 0,
                "productId": "snapvideo.iap.1000",
                "limitBuy": 0,
                "type": 0,
                "originalPrice": 1699,
                "createdAt": 1763345269,
                "updatedAt": 1763345269
            },
            {
                "id": 50,
                "price": 3999,
                "amount": 3000,
                "giftAmount": 0,
                "productId": "snapvideo.iap.3000",
                "limitBuy": 0,
                "type": 0,
                "originalPrice": 3999,
                "createdAt": 1763345315,
                "updatedAt": 1763345332
            },
            {
                "id": 51,
                "price": 5999,
                "amount": 5000,
                "giftAmount": 0,
                "productId": "snapvideo.iap.5000",
                "limitBuy": 0,
                "type": 0,
                "originalPrice": 5999,
                "createdAt": 1763345355,
                "updatedAt": 1763345355
            }
        ],
        "subscribeList": [
            {
                "id": 32,
                "price": 799,
                "originPrice": 799,
                "productId": "snapvideo.sub.week",
                "isShow": 1,
                "type": 0,
                "createdAt": 1761761196,
                "updatedAt": 1762985638
            },
            {
                "id": 33,
                "price": 4999,
                "originPrice": 4999,
                "productId": "snapvideo.sub.year",
                "isShow": 1,
                "type": 0,
                "createdAt": 1761761196,
                "updatedAt": 1762985638
            }
        ]
    }
}

返回参数说明

参数名 类型 说明
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
--cycle uint8 1-week;2-month;3-year
--originalPrice uint 套餐原价格(单位:分)
-subscribeList array 订阅项)
--id int 套餐ID
--price int 套餐价格(单位:美分)
--productId string 产品ID

备注

2021 © Live all right reserved,powered by Gitbook该文件修订时间: 2025-12-03 14:23:06

results matching ""

    No results matching ""