#

Description
- Room game rule setting notification (Texas Hold'em, TeenPatti)
Request method
- https
- POST
- Parameters are in JSON format and placed in the body.
Request parameters (additional fields may be added, please maintain compatibility with the new fields on the server side)
Parameter name |
Required |
Type |
Description |
Example |
notify_id |
Yes |
string |
Notification ID |
0795d77f85789da0eb387a5096 |
notify_time |
Yes |
string |
Timestamp (in milliseconds) when the notification was sent by the server |
1647834452408 |
app_id |
Yes |
string |
Application ID of the message receiver |
1 |
notify_event |
Yes |
string |
Notification event |
sud.mg.merchant.room.game.rule |
data |
Yes |
RoomGameRuleModel |
Notification data |
{} |
RoomGameRuleModel
Parameter name |
Required |
Type |
Description |
Example |
mg_id |
Yes |
string |
Game ID |
14615640800525066 |
room_id |
Yes |
string |
Room ID |
9009 |
rule |
Yes |
string |
Game rule description (JSON string), detailed configuration see Game Rule |
{\"small_blind\":1,\"ante\":0} |
Message signature verification
Signature verification
Request example
{
"notify_id": "0795d77f85789da0eb387a50964993a3eba1fedfec2b12f729861392a9b5ad04",
"notify_time": "1647844976502",
"app_id": "146156408005256111",
"notify_event": "sud.mg.merchant.room.game.rule",
"data": {
"room_id": "9009",
"mg_id": "mid001",
"rule": "{\"small_blind\":1,\"ante\":0}"
}
}
Notification response
Parameter name |
Required |
Type |
Description |
Example |
ret_code |
Yes |
int32 |
Return status code, 0 means the notification was successful, other error codes indicate failure |
0 |
ret_msg |
Yes |
string |
Return message |
SUCCESS |
Response example
{
"ret_code": 0,
"ret_msg": "SUCCESS",
}