注意:以下文档只适用于TOP接口,请谨慎使用!

qimen.alibaba.idle.open.play.zdm.game.start (游戏开始)

游戏开始接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
gameId String 必须 xxx 游戏标识
users GameUserDTO [] 必须
  • 最大列表长度:50
  • 用户列表
    • └ kcUserId
    • String
    • 必须
    • xxx
    • 用户标识
    • └ robot
    • Number
    • 必须
    • 0
    • 0-非机器人 1-低级 2-中级 3-高级机器人
    • └ seatNo
    • Number
    • 必须
    • 1
    • 座位号,1-5,1代表房主
    • └ nick
    • String
    • 必须
    • xxx
    • 昵称
    • └ avatar
    • String
    • 必须
    • xxx
    • 头像
    • └ joinKey
    • String
    • 必须
    • xxx
    • 唯一标识
    • └ levelCode
    • String
    • 必须
    • xxx
    • 等级code
    newTag Boolean 必须 false 新手对局标

    响应参数

    名称 类型 示例值 描述
    success Boolean true 成功
    errCode String xxx 错误码
    errMsg String xxx 错误信息

    请求示例

    {"gameId":"xxx","newTag":false,"users":[{"robot":0,"nick":"xxx","levelCode":"xxx","kcUserId":"xxx","avatar":"xxx","seatNo":1,"joinKey":"xxx"}]}

    响应示例

    {
        "success":true,
        "errCode":"xxx",
        "errMsg":"xxx"
    }

    验签示例

    {"success":"false","errCode":"sign-check-failure","errMsg":"Illegal request"}

    错误码解释

    错误码 错误描述 解决方案

    API工具

    FAQ

    返回
    顶部