#

SUD

Description

  • Bullet Screen - Game Settle(Game Over)

Request Method

  • HTTPS
  • POST
  • Parameters are in JSON format and placed in the body

Request Parameters (additional fields may be added, please keep compatibility with the added fields on the server side)

Parameter Name Required Type Description Example
notify_id Yes string Notification ID 0795d77f85789da0eb387a5096
notify_time Yes string Timestamp on the server when notified (in milliseconds) 1647834452408
app_id Yes string Application ID of the message recipient 1
notify_event Yes string Notification event sud.mg.merchant.bullet.game.settle
data Yes BulletGameSettleModel Notification data {}
BulletGameSettleModel
Parameter Name Required Type Description Example
mg_id Yes string Game ID 14615640800525066
anchor_id Yes string Anchor ID 9009
round_id Yes string Round ID round00001
result Yes string Game Result 0=Draw, 1=Victory, 2=Defeat (For single-player mode: 1=Red Team Victory, 2=Blue Team Victory)
msg_id Yes string Message ID 1692082187609964545
timestamp Yes int64 Timestamp 1692258830045
mode Yes int32 Game Mode 1=Single Player, 2=Multiplayer, 3=Nation War, 5=Ranked Match, 9=Canyon
Message Signature Verification

Verification

Request Example

{
    "notify_id": "0795d77f85789da0eb387a50964993a3eba1fedfec2b12f729861392a9b5ad04",
    "notify_time": "1647844976502",
    "app_id": "14615640800525066",
    "notify_event": "sud.mg.merchant.bullet.game.settle",
    "data": {
        "mg_id": "mgid01",
        "anchor_id": "9009",
        "round_id": "round00001",
        "result": 1,
        "msg_id": "1692082187609964545",
        "timestamp": 1692258830045,
        "mode": 1
    }
}

Notification Response

Parameter Name Required Type Description Example
ret_code Yes int32 Return status code, 0 for successful notification, other error codes for failure 0
ret_msg Yes string Return message SUCCESS

Response Example

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

results matching ""

    No results matching ""