#

简要描述
- 单场游戏开始通知 (德州扑克, TeenPatti)
请求方式
- https
- POST
- 参数为Json格式,放在body内
请求参数(可能会新增加字段,请服务端保持新增加字段兼容性)
| 参数名 |
必选 |
类型 |
说明 |
示例值 |
| notify_id |
是 |
string |
通知ID |
0795d77f85789da0eb387a5096 |
| notify_time |
是 |
string |
通知时服务端的时间戳(毫秒) |
1647834452408 |
| app_id |
是 |
string |
消息接收方的应用id |
1 |
| notify_event |
是 |
string |
通知事件 |
sud.mg.merchant.match.start |
| data |
是 |
MatchStartModel |
通知数据 |
{} |
MatchStartModel
| 参数名 |
必选 |
类型 |
说明 |
示例值 |
| mg_id |
是 |
string |
游戏id |
14615640800525066 |
| room_id |
是 |
string |
房间id |
9009 |
| game_mode |
是 |
int32 |
游戏模式 |
1 |
| match_id |
是 |
string |
游戏场次id |
ce56b6lzi1a7 |
| battle_start_at |
是 |
string |
游戏开始时间戳(秒) |
1663991010 |
| report_game_info_key |
否 |
string |
游戏开始时传入的上报信息key, 64个字符以内 |
|
| report_game_info_extras |
否 |
string |
游戏开始时传入的扩展参数, 1024个字符以内 |
|
消息验签
验签
请求示例
{
"notify_id": "xxx",
"notify_time": "1664266669547",
"app_id": "xxx",
"notify_event": "sud.mg.merchant.match.start",
"data": {
"mg_id": "1557194155570024449",
"room_id": "9010",
"game_mode": 1,
"match_id": "ce56b6lzi1a7-cf75pcvbs7j1-cxjfg7fzupz0",
"battle_start_at": "1664265322",
"report_game_info_key": "key001",
"report_game_info_extras": "extras"
}
}
通知应答
| 参数名 |
必选 |
类型 |
说明 |
示例值 |
| ret_code |
是 |
int32 |
返回状态码, 0为消息通知成功,其他错误码为失败 |
0 |
| ret_msg |
是 |
string |
返回消息 |
SUCCESS |
应答示例
{
"ret_code": 0,
"ret_msg": "SUCCESS",
}