Skip to main content
PUT
/
api
/
v1
/
dt
/
user
/
status
控制用戶
curl --request PUT \
  --url https://api.example.com/api/v1/dt/user/status \
  --header 'Content-Type: application/json' \
  --data '
{
  "uuid": "e69da788a6c841d4953c475fc42bf464",
  "platform_id": "AXTES",
  "username": "player001",
  "type": "1",
  "key": "abc123hash"
}
'
{
  "error": {
    "code": 0,
    "msg": "Success",
    "uuid": "e69da788a6c841d4953c475fc42bf464"
  }
}
代碼說明
0成功
2無效參數
19請求次數已達上限
20Secret key 錯誤
21非法用戶名稱
25類型參數錯誤
36伺服器錯誤
9999未知錯誤

Body

application/json
uuid
string
required

各平台自定義的唯一性請求序號

platform_id
string
required

平台方的產品 ID

username
string
required

用戶在遊戲中的帳號

type
string
required

控制類型 0 - 啟用、1 - 禁用 (在線用戶強制斷線)、2 - 停用 (在線用戶不會強制斷線)

key
string
required

md5(type + username + 平台密鑰)

Response

成功

error
object