#

SUD

简要描述

  • 座位状态变更通知

请求方式

  • https
  • POST
  • 参数为Json格式,放在body内

请求参数(可能会新增加字段,请服务端保持新增加字段兼容性)

参数名 必选 类型 说明 示例值
notify_id string 通知ID 0795d77f85789da0eb387a5096
notify_time string 通知时服务端的时间戳(毫秒) 1647834452408
app_id string 消息接收方的应用id 1
notify_event string 通知事件 sud.mg.merchant.room.seat.changed
data SeatChangedModel 通知数据 {}
SeatChangedModel
参数名 必选 类型 说明 示例值
mg_id string 游戏id 14615640800525066
room_id string 房间id 9009
changed_time string 变更时间戳(毫秒) 1750144904293
seat_changed ChangedObject[] 本次变化的玩家列表 []
seat_players PlayerObject[] 变化后座位上的玩家状态 []
  • ChangedObject
参数名 必选 类型 说明 示例值
uid string 本次变化玩家id xxx
changed_type int32 1.上座位 2.下座位 3.准备 4.取消准备 1
  • PlayerObject
参数名 必选 类型 说明 示例值
uid string 用户uid xxx
seat_index int32 座位号,从0开始 0
status string 用户状态,枚举值 </br>IDLE: 空闲未准备</br>READY: 准备 IDLE
消息验签

验签

请求示例

{
  "notify_id": "xxx",
  "notify_time": "1749635780743",
  "app_id": "xxx",
  "notify_event": "sud.mg.merchant.room.seat.changed",
  "data": {
    "mg_id": "xxx",
    "room_id": "xxx",
    "changed_time": "1749635780843",
    "seat_changed": [{
      "uid": "xxx",
      "changed_type": 3
    }],
    "seat_players": [{
      "uid": "xxx",
      "seat_index": 0,
      "status": "READY"
    }]
  }
}

通知应答

参数名 必选 类型 说明 示例值
ret_code int32 返回状态码, 0为消息通知成功,其他错误码为失败 0
ret_msg string 返回消息 SUCCESS

应答示例

{
    "ret_code": 0,
    "ret_msg": "SUCCESS",
}

results matching ""

    No results matching ""