Skip to content

注單接口文件 ​

💡 接口使用建議

  • 注單是以遊戲派獎時間為準;拉取目前時間 10 分鐘之前資料;建議拉取區間為 1-5 分鐘,最大不能超過 90 分鐘。我方注單每兩分鐘更新一次,建議每隔至少兩分鐘拉取一次,因為兩分鐘內多次拉取的注單也是重複注單。並強制限制至少每隔 10 秒才能拉取一次注單。
  • 回應中的資料時間均採用 UTC+8 時區。

🔐 認證與加密 ​

所有接口都需要進行認證與加密,詳細的加密方式請參考:認證授權指南

📋 接口列表 ​

拉取注單 (s:16) ​

此功能用於拉取遊戲注單記錄,並提供兩種回應格式因應不同開發需求。


1. 回應 d.list 為 欄位導向 (Column-oriented) 的物件 ​

  • 端點: {host}/getRecordHandle
  • HTTP 方法: GET
param 參數結構 ​
參數名類型必填描述
sInteger✅操作子類型 (固定為 16)
startTimeInteger✅查詢起始時間戳 Unix timestamp in milliseconds
endTimeInteger✅查詢結束時間戳 Unix timestamp in milliseconds
回應參數說明 ​
參數名類型描述
sInteger服務標識 (116=拉取注單接口)
mString接口路徑
dObject資料物件
d.codeInteger回應碼
d.startInteger查詢起始時間
d.endInteger查詢結束時間
d.countInteger回傳資料筆數
d.listObject資料列表 (Column-oriented)
d.list.GameIDArray<String>遊戲局號(小局號)
d.list.AccountsArray<String>玩家帳號
d.list.ServerIDArray<String>遊戲局號(大局號)
d.list.KindIDArray<Int>遊戲代號(參考遊戲列表)
d.list.TableIDArray<Int>桌號
d.list.ChairIDArray<Int>座位號
d.list.UserCountArray<Int>同房所在玩家數
d.list.CellScoreArray<String>有效投注額
d.list.AllBetArray<String>總成本 (總投注額 + 門票)
d.list.TicketFeeArray<String>門票
d.list.ProfitArray<String>總盈利 (輸贏金額 - 門票)
d.list.RevenueArray<String>抽水金額
d.list.GameStartTimeArray<String>遊戲開始時間
d.list.GameEndTimeArray<String>遊戲結束時間
d.list.CardValueArray<String>牌局原始資料
d.list.ChannelIDArray<Int>代理商編號
d.list.CurrencyArray<String>幣別
d.list.LanguageArray<String>遊戲語系列表
d.list.RecordIdArray<Int>Record ID
d.list.CurScoreArray<String>初始分數
d.list.CreateTimeArray<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 參數結構 ​
參數名類型必填描述
sInteger✅操作子類型 (固定為 16)
startTimeInteger✅查詢起始時間戳 Unix timestamp in milliseconds
endTimeInteger✅查詢結束時間戳 Unix timestamp in milliseconds
回應參數說明 ​
參數名類型描述
sInteger服務標識 (116=拉取注單接口)
mString接口路徑
dObject資料物件
d.codeInteger回應碼
d.startInteger查詢起始時間
d.endInteger查詢結束時間
d.countInteger回傳資料筆數
d.listArray<Object>資料列表 (Row-oriented)
d.list[].GameIDString遊戲局號(小局號)
d.list[].AccountsString玩家帳號
d.list[].ServerIDString遊戲局號(大局號)
d.list[].KindIDInt遊戲代號(參考遊戲列表)
d.list[].TableIDInt桌號
d.list[].ChairIDInt座位號
d.list[].UserCountInt同房所在玩家數
d.list[].CellScoreString有效投注額
d.list[].AllBetString總成本 (總投注額 + 門票)
d.list[].TicketFeeString門票
d.list[].ProfitString總盈利 (輸贏金額 - 門票)
d.list[].RevenueString抽水金額
d.list[].GameStartTimeString遊戲開始時間
d.list[].GameEndTimeString遊戲結束時間
d.list[].CardValueString牌局原始資料
d.list[].ChannelIDInt代理商編號
d.list[].CurrencyString幣別
d.list[].LanguageString遊戲語系列表
d.list[].RecordIdIntRecord ID
d.list[].CurScoreString初始分數
d.list[].CreateTimeString注單建立時間
回應範例 ​
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 參數結構 ​

參數名類型必填描述
sInteger✅操作子類型 (固定為 19)
idInteger✅原始記錄 ID (同注單回應資料之 RecordId)
gameusernoString✅遊戲小局號(同注單回應資料之 GameID)
LangString❌語系( 0 為中文(預設),1 為英文)

回應參數說明 ​

參數名類型描述
sInteger服務標識 (119=對局日誌解析(URL)接口)
mString接口路徑
dObject資料物件
d.codeInteger回應碼
d.gameLogURLString內嵌用連結

回應範例 ​

json
{
  "s": 119,
  "m": "/getRecordHandle",
  "d": {
    "code": 0,
    "gameLogURL": "{consoleHost}/#/gameLog?agent=41param=TP9WILUnSmzwKO0R5lhphO%2BnT54o1%2FEcAt3lOlkfKx2Ci7w0DFf0hluqtH2QJexCc17qAUmZb299IYx3m6swIA%3D%3D"
  }
}

📌 代碼說明 ​

📘 回應碼說明 ​

同轉帳錢包文件的回應碼說明