获取游戏记录

接口说明

获取会员的游戏投注记录。

请求地址

POST /api/game/records

请求参数

参数名 类型 必填 说明
account String 商户账号
api_key String 商户密钥
api_code String 接口标识
username String 会员账号(不传则查询所有)
start_time String 开始时间(Y-m-d H:i:s)
end_time String 结束时间(Y-m-d H:i:s)
page Int 页码(默认1)
limit Int 每页条数(默认20)

响应参数

参数名 类型 说明
Code Int 返回码(0成功)
Message String 返回说明
Data Object 返回数据(包含记录列表)

请求示例

POST /api/game/records
Content-Type: application/x-www-form-urlencoded

account=merchant123&api_key=abc123&api_code=AG&start_time=2024-01-01 00:00:00&end_time=2024-01-31 23:59:59

响应示例

{
  "Code": 0,
  "Message": "成功",
  "Data": {
    "total": 100,
    "page": 1,
    "list": [
      {
        "order_no": "G20240101001",
        "username": "test001",
        "amount": "100.00",
        "time": "2024-01-01 12:00:00"
      }
    ]
  }
}

目录