文档
测试

登录游戏

POST
Login

请求参数

参数名
类型
描述
必填
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位时间戳
必填
GameCode
string
进入某个游戏
必填
gameTypeId
string
代表要啟動的遊戲代碼
必填

响应参数

参数名
类型
描述
必填
Code
int
返回状态码, 200代表成功
必填
Message
string
返回消息
必填
Url
string
进入游戏的URL
必填

可能錯誤

|代碼|信息|備註| |-|-|-| |400|操作失败|The request could not be processed because of conflict in the request, such as launch game url for locked player (由於衝突無法處理請求,比如為鎖定的玩家啟動遊戲鏈接)| |401|权限不足|-| |500|失败/请联系管理员|-| |1500|参数错误|The value 'XXX' is not valid for Platform. ('XXX'对平台来说是个无效值)| |9001|发送网络请求失败|發生其他未預期錯誤| |9123|找不到资源 |Requested content not available for player (請求的內容對玩家不可用)|