文档
测试

创建玩家

POST
Create

接口描述

创建玩家

请求参数

参数名
类型
描述
必填
Host
string
请求域名
必填
GameTypeEnum
Enum
游戏类型(请使用枚举进行传值: GameTypeEnum.MG)
必填
Md5Key
string
秘钥
必填
AesKey
string
AesKey
必填
MerchantCode
string
商户号
必填
LoginName
string
玩家账号 (PlayerId)
必填
Password
string
密码
必填
NickName
string
玩家昵称
必填
DeviceType
Enum
设备类型枚举(DeviceTypeEnum.PC)
必填
LoginIp
string
玩家登录IP ,如果不想传值 直接传入空字符串
必填
Timestamp
Long
当前13位时间戳
必填

响应参数

参数名
类型
描述
必填
Code
int
返回状态码, 200代表成功
必填
Message
string
返回消息
必填

可能錯誤

|代碼|信息|備註| |-|-|-| |401|权限不足|-| |403|禁止|-| |500|失败/请联系管理员|-| |1500|参数错误|The field PlayerId must be a string with a maximum length of 50. Using only numbers and english alphabets. (PlayerId 必须不能超过 50 个字符。请只使用数字和英文字母)| |9001|发送网络请求失败|發生其他未預期錯誤|