#

Brief description
- Player Drawing Data Notification
Request method
- HTTPS
- POST
- Parameters are in Json format and placed in the body
Request parameters (new fields may be added, please keep the server compatible with the newly added fields)
| Parameter name |
Required |
Type |
Description |
Example value |
| notify_id |
Yes |
string |
Notification ID |
0795d77f85789da0eb387a5096 |
| notify_time |
Yes |
string |
Timestamp of the server when notifying (milliseconds) |
1647834452408 |
| app_id |
Yes |
string |
Application ID of the message recipient |
xxx |
| notify_event |
Yes |
string |
Notification event |
sud.mg.merchant.player.draw.image |
| data |
Yes |
DrawImageModel |
Notification data |
{} |
DrawImageModel
| Parameter name |
Required |
Type |
Description |
Example value |
| mg_id |
Yes |
string |
Game id |
14615640800525066 |
| room_id |
Yes |
string |
Room id |
9009 |
| game_round_id |
Yes |
string |
Game round id |
xxx |
| uid |
Yes |
string |
User id |
xxx |
| image_data |
Yes |
string |
Image data, format description: Convert the image file to a Base64 encoded string, then concatenate it following the format data:{mime_type};base64,{base64_data}. |
xxx |
| timestamp |
Yes |
string |
Timestamp (milliseconds) |
1770112570548 |
| payload |
No |
object |
Extended fields |
{} |
Message signature verification
Signature verification
Request example
{
"notify_id": "xxx",
"notify_time": "1770112570555",
"app_id": "xxx",
"notify_event": "sud.mg.merchant.player.draw.image",
"data": {
"mg_id": "xxx",
"room_id": "xxx",
"game_round_id": "xxx",
"uid": "xxx",
"image_data": "data:image/png;base64,xxx",
"timestamp": "1770112570548",
"payload": {}
}
}
Notification response
| Parameter name |
Required |
Type |
Description |
Example value |
| ret_code |
Yes |
int32 |
Return status code, 0 means successful message notification, other error codes mean failure |
0 |
| ret_msg |
Yes |
string |
Return message |
SUCCESS |
Response example
{
"ret_code": 0,
"ret_msg": "SUCCESS",
}