#
Description
- Bid result notification
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 | BidResultModel | Notification data | {} |
BidResultModel
Parameter name | Required | Type | Description | Example |
---|---|---|---|---|
mg_id | Yes | string | Game ID | 14615640800525066 |
room_id | Yes | string | Room ID | 9009 |
game_round_id | Yes | string | Game round ID | r01 |
player_bids | Yes | PlayerBidResultModel[] | Bidding results | [] |
PlayerBidResultModel
Parameter name | Required | Type | Description | Example |
---|---|---|---|---|
order_id | Yes | string | SUD order number | xxx |
out_order_id | Yes | string | Merchant-defined unique order number | xxx |
uid | Yes | string | Player uid | xxx |
bid_rs | Yes | int32 | Bidding result. 0 - success, 1 - failed | 0 |
bid_value | Yes | int32 | Bidding value | 100 |
payload | No | object | Extra data | {} |
payload
1.Werewolf,mgId=1472142747708284929
payload | description |
---|---|
{"role_id":1} | role_id description 1: werewolf 2: villager 3: prophet 4: witch 5: hunter 6: guard |
Message signature verification
Request example
{
"notify_id": "0795d77f85789da0eb387a50964993a3eba1fedfec2b12f729861392a9b5ad04",
"notify_time": "1647844976502",
"app_id": "146156408005256111",
"notify_event": "sud.mg.merchant.bid.result",
"data": {
"mg_id": "1472142747708284929",
"room_id": "xxx",
"game_round_id": "xxx",
"player_bids": [{
"order_id": "xxx",
"out_order_id": "xxx",
"uid": "xxx",
"bid_rs": 0,
"bid_value": 200,
"payload": {
"role_id": 6
}
}, {
"order_id": "xxx",
"out_order_id": "xxx",
"uid": "xxx",
"bid_rs": 1,
"bid_value": 150,
"payload": {
"role_id": 6
}
}]
}
}
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",
}