会员注册账号

接口说明

用于在游戏平台注册会员账号,注册成功后会员可使用该账号登录游戏。

请求地址

POST /api/player/register

请求参数

参数名 类型 必填 说明
account String 商户账号
api_key String 商户密钥
api_code String 接口标识
username String 会员账号(由商户生成,需唯一)
password String 会员密码
currency String 币种(默认 CNY)

响应参数

参数名 类型 说明
Code Int 返回码(0成功)
Message String 返回说明
Data Object 返回数据

请求示例

POST /api/player/register
Content-Type: application/x-www-form-urlencoded

account=merchant123&api_key=abc123&api_code=AG&username=test001&password=123456

响应示例

{
  "Code": 0,
  "Message": "成功",
  "Data": {
    "username": "test001",
    "status": 1
  }
}

目录