Skip to main content
POST
/
api
/
v1
/
dt
/
game
用戶登入
curl --request POST \
  --url https://api.example.com/api/v1/dt/game \
  --header 'Content-Type: application/json' \
  --data '
{
  "uuid": "e69da788a6c841d4953c475fc42bf464",
  "platform_id": "AXTES",
  "username": "player001",
  "transaction_id": "TX123456",
  "credit": "0",
  "key": "abc123hash",
  "homeUrl": "https%3A%2F%2Fwww.example.com",
  "lang": "zh-tw"
}
'
{
  "url": "https://rel-game.cog888.net?pid=R01C05&token=zL13tWjRw2d0mHJSAkNtyNgjAsfTjavP6e9gQLpsOF-&homeUrl=home&registerUrl=register&depositUrl=deposit&withdrawUrl=withdraw&extendSessionUrl=extend&lang=en-us&closeAppOnLogout=1"
}
代碼說明
2無效參數
36伺服器錯誤
9999未知錯誤

Body

application/json
uuid
string
required

各平台自定義的唯一性請求序號,長度 >= 32 且 <= 128 字節

platform_id
string
required

平台方的產品 ID

username
string
required

用戶在遊戲中的帳號 (限制長度23字元,且皆為小寫英文或數字)

transaction_id
string
required

交易序號

credit
string
required

本次登入所需帶入遊戲中額度,單一錢包該值須為0

key
string
required

md5(username + credit + transaction_id + 平台密鑰)

lang
string

語系,選填

homeUrl
string

現金網首頁,需使用 encodeURIComponent 編碼

registerUrl
string

現金網註冊網址,需使用 encodeURIComponent 編碼

depositUrl
string

現金網存款網址,需使用 encodeURIComponent 編碼

withdrawUrl
string

現金網取款網址,需使用 encodeURIComponent 編碼

extendSessionUrl
string

現金網延長 session 網址,需使用 encodeURIComponent 編碼

theme_pid
string

要顯示的 UI 皮的 pid,未帶入將顯示預設值

title
string

網頁分頁上顯示的產品名稱,未帶入將顯示 COG

favicon
string

網頁分頁上顯示的產品 favicon,未帶入將顯示 COG favicon

logoLandscape
string

大廳橫屏顯示的 logo,未帶入將顯示 COG logo

site
string

帶入 app 字串,在手機 mobile h5 打橫將不顯示上滑進入全屏遮罩

Response

成功

url
string

導向遊戲平台的 URL