create_account.md 1.8 KB

创建玩家账号

请求地址

{API_URL}

请求参数

字段名称 类型 长度 必要 描述
itype string 4 1 = 是注册玩家消息标识
authcode string 32 代理标识,由厂商配发
authkey string 32 代理秘钥,由厂商配发
score double 19 玩家注册时赠送的分数,默认为零,大于零才有效
name string 32 玩家昵称,默认为空
phone string 33 玩家电话号码,默认为空

示例

  • URL:

    • {API_URL}
  • HTTP Method(请求方式):

    • POST
  • 表单数据:

    Content-Type: application/x-www-form-urlencoded

        itype: 1,
        authcode: test001,
        authkey: 123456,
        score: 100.77,
        name: xxxxx,
        phone: 13333333333,
        info:today is good
    

返回结果

字段名称 类型 长度 说明
ret int 4 返回-1表示注册成功;非-1表示注册失败
info string 128 注册失败时,返回的失败信息
account string 32 注册玩家账号
name string 32 注册玩家昵称
pwd string 33 注册玩家的登录密码

返回格式

{"ret":-1,
"account":"0146415079",
"name":"xxxx",
"pwd":"eKFqNh"
}