注單接口文件
💡 接口使用建議
- 注單是以遊戲派獎時間為準;拉取目前時間 10 分鐘之前資料;建議拉取區間為 1-5 分鐘,最大不能超過 90 分鐘。我方注單每兩分鐘更新一次,建議每隔至少兩分鐘拉取一次,因為兩分鐘內多次拉取的注單也是重複注單。並強制限制至少每隔 10 秒才能拉取一次注單。
- 回應中的資料時間均採用 UTC+8 時區。
🔐 認證與加密
所有接口都需要進行認證與加密,詳細的加密方式請參考:認證授權指南
📋 接口列表
拉取注單 (s:16)
此功能用於拉取遊戲注單記錄,並提供兩種回應格式因應不同開發需求。
1. 回應 d.list 為 欄位導向 (Column-oriented) 的物件
- 端點:
{host}/getRecordHandle - HTTP 方法:
GET
param 參數結構
| 參數名 | 類型 | 必填 | 描述 |
|---|---|---|---|
| s | Integer | ✅ | 操作子類型 (固定為 16) |
| startTime | Integer | ✅ | 查詢起始時間戳 Unix timestamp in milliseconds |
| endTime | Integer | ✅ | 查詢結束時間戳 Unix timestamp in milliseconds |
回應參數說明
| 參數名 | 類型 | 描述 |
|---|---|---|
| s | Integer | 服務標識 (116=拉取注單接口) |
| m | String | 接口路徑 |
| d | Object | 資料物件 |
| d.code | Integer | 回應碼 |
| d.start | Integer | 查詢起始時間 |
| d.end | Integer | 查詢結束時間 |
| d.count | Integer | 回傳資料筆數 |
| d.list | Object | 資料列表 (Column-oriented) |
| d.list.GameID | Array<String> | 遊戲局號(小局號) |
| d.list.Accounts | Array<String> | 玩家帳號 |
| d.list.ServerID | Array<String> | 遊戲局號(大局號) |
| d.list.KindID | Array<Int> | 遊戲代號(參考遊戲列表) |
| d.list.TableID | Array<Int> | 桌號 |
| d.list.ChairID | Array<Int> | 座位號 |
| d.list.UserCount | Array<Int> | 同房所在玩家數 |
| d.list.CellScore | Array<String> | 有效投注額 |
| d.list.AllBet | Array<String> | 總成本 (總投注額 + 門票) |
| d.list.TicketFee | Array<String> | 門票 |
| d.list.Profit | Array<String> | 總盈利 (輸贏金額 - 門票) |
| d.list.Revenue | Array<String> | 抽水金額 |
| d.list.GameStartTime | Array<String> | 遊戲開始時間 |
| d.list.GameEndTime | Array<String> | 遊戲結束時間 |
| d.list.CardValue | Array<String> | 牌局原始資料 |
| d.list.ChannelID | Array<Int> | 代理商編號 |
| d.list.Currency | Array<String> | 幣別 |
| d.list.Language | Array<String> | 遊戲語系列表 |
| d.list.RecordId | Array<Int> | Record ID |
| d.list.CurScore | Array<String> | 初始分數 |
| d.list.CreateTime | Array<String> | 注單建立時間 |
回應範例
json
{
"s": 116,
"m": "/getRecordHandle",
"d": {
"code": 0,
"start": 1760493600000,
"end": 1760497200000,
"count": 2,
"list": {
"GameID": [
"50-1760495753-4400040-2916598-6-1",
"50-1760495753-4400040-2916598-2-2"
],
"ServerID": ["2916598", "2916598"],
"KindID": [220, 220],
"TableID": [4400040, 4400040],
"ChairID": [6, 2],
"UserCount": [2, 2],
"CellScore": ["20", "10"],
"TicketFee": ["0", "0"],
"AllBet": ["20", "10"],
"Profit": ["10", "-10"],
"Revenue": ["0", "0"],
"GameStartTime": ["2025-10-15 10:35:53", "2025-10-15 10:35:53"],
"GameEndTime": ["2025-10-15 10:35:59", "2025-10-15 10:35:59"],
"CardValue": [
"0000001825240000000000000000002a16226",
"0000001825240000000000000000002a16226"
],
"ChannelID": [41, 41],
"RecordId": [3053157, 3053156],
"CurScore": ["1000000", "1000000"],
"Currency": ["CNY", "CNY"],
"CreateTime": ["2025-10-15 10:35:59", "2025-10-15 10:35:59"],
"Accounts": ["sh1015P001", "sh1015P002"],
"Language": ["zh_cn", "zh_cn"]
}
}
}2. 回應 d.list 為 注單導向 (Row-oriented) 的物件陣列 (List 格式)
- 端點:
{host}/getRecordHandle/recordWithList - HTTP 方法:
GET
param 參數結構
| 參數名 | 類型 | 必填 | 描述 |
|---|---|---|---|
| s | Integer | ✅ | 操作子類型 (固定為 16) |
| startTime | Integer | ✅ | 查詢起始時間戳 Unix timestamp in milliseconds |
| endTime | Integer | ✅ | 查詢結束時間戳 Unix timestamp in milliseconds |
回應參數說明
| 參數名 | 類型 | 描述 |
|---|---|---|
| s | Integer | 服務標識 (116=拉取注單接口) |
| m | String | 接口路徑 |
| d | Object | 資料物件 |
| d.code | Integer | 回應碼 |
| d.start | Integer | 查詢起始時間 |
| d.end | Integer | 查詢結束時間 |
| d.count | Integer | 回傳資料筆數 |
| d.list | Array<Object> | 資料列表 (Row-oriented) |
| d.list[].GameID | String | 遊戲局號(小局號) |
| d.list[].Accounts | String | 玩家帳號 |
| d.list[].ServerID | String | 遊戲局號(大局號) |
| d.list[].KindID | Int | 遊戲代號(參考遊戲列表) |
| d.list[].TableID | Int | 桌號 |
| d.list[].ChairID | Int | 座位號 |
| d.list[].UserCount | Int | 同房所在玩家數 |
| d.list[].CellScore | String | 有效投注額 |
| d.list[].AllBet | String | 總成本 (總投注額 + 門票) |
| d.list[].TicketFee | String | 門票 |
| d.list[].Profit | String | 總盈利 (輸贏金額 - 門票) |
| d.list[].Revenue | String | 抽水金額 |
| d.list[].GameStartTime | String | 遊戲開始時間 |
| d.list[].GameEndTime | String | 遊戲結束時間 |
| d.list[].CardValue | String | 牌局原始資料 |
| d.list[].ChannelID | Int | 代理商編號 |
| d.list[].Currency | String | 幣別 |
| d.list[].Language | String | 遊戲語系列表 |
| d.list[].RecordId | Int | Record ID |
| d.list[].CurScore | String | 初始分數 |
| d.list[].CreateTime | String | 注單建立時間 |
回應範例
json
{
"s": 116,
"m": "/getRecordHandle/recordWithList",
"d": {
"code": 0,
"start": 1760493600000,
"end": 1760497200000,
"count": 2,
"list": [
{
"GameID": "50-1760495753-4400040-2916598-6-1",
"ServerID": "2916598",
"KindID": 220,
"TableID": 4400040,
"ChairID": 6,
"UserCount": 2,
"CellScore": "20",
"TicketFee": "0",
"AllBet": "20",
"Profit": "10",
"Revenue": "0",
"GameStartTime": "2025-10-15 10:35:53",
"GameEndTime": "2025-10-15 10:35:59",
"CardValue": "0000001825240000000000000000002a16226",
"ChannelID": 41,
"RecordId": 3053157,
"CurScore": "1000000",
"Currency": "CNY",
"CreateTime": "2025-10-15 10:35:59",
"Accounts": "sh1015P001",
"Language": "zh_cn"
},
{
"GameID": "50-1760495753-4400040-2916598-2-2",
"ServerID": "2916598",
"KindID": 220,
"TableID": 4400040,
"ChairID": 2,
"UserCount": 2,
"CellScore": "10",
"TicketFee": "0",
"AllBet": "10",
"Profit": "-10",
"Revenue": "0",
"GameStartTime": "2025-10-15 10:35:53",
"GameEndTime": "2025-10-15 10:35:59",
"CardValue": "0000001825240000000000000000002a16226",
"ChannelID": 41,
"RecordId": 3053156,
"CurScore": "1000000",
"Currency": "CNY",
"CreateTime": "2025-10-15 10:35:59",
"Accounts": "sh1015P002",
"Language": "zh_cn"
}
]
}
}對局日誌解析(URL)接口 (s:19)
此接口用於取得單一牌局的日誌連結。
- 端點:
{host}/getRecordHandle - HTTP 方法:
GET
NOTE
使用 getRecordHandle 端點,並指定 s=19。
param 參數結構
| 參數名 | 類型 | 必填 | 描述 |
|---|---|---|---|
| s | Integer | ✅ | 操作子類型 (固定為 19) |
| id | Integer | ✅ | 原始記錄 ID (同注單回應資料之 RecordId) |
| gameuserno | String | ✅ | 遊戲小局號(同注單回應資料之 GameID) |
| Lang | String | ❌ | 語系( 0 為中文(預設),1 為英文) |
回應參數說明
| 參數名 | 類型 | 描述 |
|---|---|---|
| s | Integer | 服務標識 (119=對局日誌解析(URL)接口) |
| m | String | 接口路徑 |
| d | Object | 資料物件 |
| d.code | Integer | 回應碼 |
| d.gameLogURL | String | 內嵌用連結 |
回應範例
json
{
"s": 119,
"m": "/getRecordHandle",
"d": {
"code": 0,
"gameLogURL": "{consoleHost}/#/gameLog?agent=41param=TP9WILUnSmzwKO0R5lhphO%2BnT54o1%2FEcAt3lOlkfKx2Ci7w0DFf0hluqtH2QJexCc17qAUmZb299IYx3m6swIA%3D%3D"
}
}📌 代碼說明
📘 回應碼說明
同轉帳錢包文件的回應碼說明
