谷歌支付验证

请求URL:

  • /googlePurchase

请求方式:

  • POST

参数:

参数名 必选 类型 说明
receiptData 是 string 验证小票
productId 是 string 商品ID
sign 是 string 接口签名
isPVP 否 uint8 是否PVP报名
pvpLevel 否 uint 报名PVP的类别

返回示例

{
    "code": 200,
    "msg": "SUCCESS",
    "data": {
        "userBox": null,
        "pvpRoom": {
            "id": 1,
            "userId1": 1,
            "userId2": 2,
            "round": 1,
            "state": 10
        },
    }
}

返回参数说明

参数名 类型 说明
code int 状态码
msg string 提示信息
data struct 数据
-userBox struct 用户获得宝箱信息
-pvpRoom struct PVP房间信息
--id int PVP房间id
--userId1 int 玩家1的ID
--userId2 int 玩家2的ID
--round int 当前轮数
--state int PVP状态:10-匹配中;20-PK中;30-已结束

备注

2021 © Live all right reserved,powered by Gitbook该文件修订时间: 2026-09-18 17:55:03

results matching ""

    No results matching ""