聊天室信息

请求URL:

  • /getChatRoomInfo

请求方式:

  • POST

参数:

参数名 必选 类型 说明
roomId 否 int 聊天室ID

返回示例

{
    "code": 200,
    "msg": "SUCCESS",
    "data": {
        "id": 1,
        "roleId": 10095,
        "userId1": 555625,
        "userId2": 2,
        "rounds": 5,
        "price": 200,
        "score1": 87,
        "score2": 239,
        "status": 3,
        "createdAt": 1788253783,
        "updatedAt": 1788254800
    }
}

返回参数说明

参数名 类型 说明
code int 状态码
msg string 提示信息
data struct 数据
-id int 聊天室ID
-roleId int 角色ID
-userId1 int 玩家1ID
-userId2 int 玩家2ID
-rounds int 当前回合数
-status int 状态:1-匹配中;2-PK中;3-结束;4-匹配失败

备注

签名sign说明:

拼接字符串: signStr = accessToken + signSecret + userId + timestamp

sign = MD5加密字符串signStr

accessToken:用户token

signSecret:签名密钥

userId:用户ID

timestamp:当前时间戳秒

2021 © Live all right reserved,powered by Gitbook该文件修订时间: 2026-09-04 10:34:03

results matching ""

    No results matching ""