game_bet_list.md 2.9 KB

获得下注记录

描述

此函数允许运营商按"下注日期"获取"交易记录"。因此不会得到太多重复 的数据。每次 API 调用最多返回 1000 条记录 (时间递增排列)

请求方式( Host-> BCWIN):post

编码方式:application/x-www-form-urlencoded

BCWIN响应的数据格式是: application/json

网址

{bcwinapi}/api/game/getgameinfo

请求参数

| 名称 | 类型 | 必要 |描述| |:--------:|:-----:|:--------:|:--------:| | cert | string | Y |安全代码| | extension1 | string | Y |代理 ID| | user | String(600) | N |用逗号(,)分隔的一系列用户名。没有users则查询所有玩家| | st | Long | Y |设定开始时间,查询区间最大为 24 小时 (GMT+8), e.g. 1517265756000| | et | Long | Y |设定结束时间,查询区间最大为 24 小时e.g. 1517265756000| | page | integer | Y |资料页码, 从 0 开始| | pagesize | integer | Y |最大值2000|

示例

  • URL:
  • HTTP Method
    • POST
  • 表单数据

    Content-Type: application/x-www-form-urlencoded

    cert:v8VMKKzlPpD0te4rX99Hgefs3PQrBFWJKiuUqg6Y
    extension1:adminweb
    user:test1
    st:1700122818110
    et:1700123037718
    page:0
    pagesize:20
    details:1
    serverid:104
    

返回结果

| 名称 | 类型 | 描述 | |:--------:|:-----:|:--------:| | status | string | 状态代码 | | totalsize | string | 记录数量 | | transactions | string | 交易数据数组 | | transactions.betid | string | 记录id | | transactions.transId | string | 对局唯一id | | transactions.useraccount | string | 玩家账号 | | transactions.gamename | string | 游戏名称 | | transactions.tableid | int32 | 结算类型 | | transactions.spjpbet | double | 单次累计奖池下注值 | | transactions.betscore | string | 下注分数 | | transactions.winscore | string | 赢分 | | transactions.userscore | string | 玩家当前分数 | | transactions.inserttime | int64 | 生成日期(时间戳:毫秒) |

## 成功的结果

{
    "status": 0,
    "totalsize": 2,
    "transactions": [
        {
            "betid": "kpsh7vw0osn0",
			"transId": "667c009835",
            "useraccount": "test1",
            "gamename": "Splash Hunter novice",
            "tableid": "0",
            "betscore": "0.17",
            "spjpbet": "0.0123",
            "winscore": "0.02",
            "userscore": "999998.74",
            "inserttime": 1732500566495, 
        },{
            "betid": "oksjdhw0uh67",
			"transId": "98e3hnbo98",
            "useraccount": "test1",
            "gamename": "Splash Hunter novice",
            "tableid": "0",
            "betscore": "0.02",
            "spjpbet": "0.0123",
            "winscore": "0.01",
            "userscore": "999998.89",
            "inserttime": 1732500566495,
        }
    ]
}

## 4.6.6 查无资料的结果

{
"status": 1003
}