开启宝箱

请求URL:

  • /openBox

请求方式:

  • POST

参数:

参数名 必选 类型 说明
userBoxId 是 int 用户宝箱ID
sign 是 string 接口签名
pvpRoomId 否 int PVP的ID

返回示例

{
    "code": 200,
    "msg": "SUCCESS",
    "data": {
        "id": 7,
        "name": "Cash * 1",
        "img": "",
        "level": 10,
        "price": 1000,
        "type": 2,
        "appearRate": 0.6,
        "createdAt": "2026-09-17T05:48:10Z",
        "updatedAt": "2026-09-17T05:49:37Z"
    }
}

返回参数说明

参数名 类型 说明
code int 状态码
msg string 提示信息
data array 开箱爆出的物品
-id int 物品ID
-name string 物品名称
-img string 物品图片
-level string 物品等级:10-普通;20-罕见;30-稀有;40-诗史;50-传奇
-price int 物品价值(美分)
-type int 物品类别:1-物品;2-现金(直接加到用户钱包余额)

备注

2021 © Live all right reserved,powered by Gitbook该文件修订时间: 2026-09-18 11:19:41

results matching ""

    No results matching ""