#

SUD

Description

  • Single game settlement 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 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 Server-side timestamp (in milliseconds) of notification time 1647834452408
app_id Yes string Application ID of the message recipient 1
notify_event Yes string Notification event sud.mg.merchant.match.settle
data Yes MatchSettleModel Notification data {}
MatchSettleModel
Parameter Name Required Type Description Example
mg_id Yes string Game ID 14615640800525066
room_id Yes string Room ID 9009
game_mode Yes int32 Game mode 1
match_id Yes string Game session ID ce56b6lzi1a7
battle_start_at Yes string Game start timestamp (in seconds) 1663991010
battle_end_at Yes string Game end timestamp (in seconds) 1663991020
battle_duration Yes string Game duration (in seconds) 10
results Yes PlayerSettleModel[] Player settlement data
report_game_info_key Yes string Report information key (up to 64 characters) passed in at the start of the game
report_game_info_extras Yes string Extended parameters (up to 1024 characters) passed in at the start of the game
  • PlayerSettleModel
Parameter Name Required Type Description Example
uid Yes string User UID, empty string for robot u001
is_ai Yes int32 0: normal user, 1: robot 0
score Yes int32 Total score obtained by the player in the game 10
remain_score Yes int32 Remaining points of the player 100
commission_score No int32 Commission deduction points 10
Message Signature Verification

Signature Verification

Request Example

{
    "notify_id": "144884c98000100c-15da5e428a821000",
    "notify_time": "1664266669547",
    "app_id": "1461564080052506636",
    "notify_event": "sud.mg.merchant.match.settle",
    "data": {
        "mg_id": "1557194155570024449",
        "room_id": "9010",
        "game_mode": 1,
        "match_id": "ce56b6lzi1a7-cf75pcvbs7j1-cxjfg7fzupz0",
        "battle_start_at": "1664265322",
        "battle_end_at": "1664265594",
        "battle_duration": "272",
        "results": [{
            "is_ai": 0,
            "uid": "fa1c53c4",
            "score": -100,
            "remain_score": 0,
            "commission_score": 0
        }, {
            "is_ai": 0,
            "uid": "f0818db8",
            "score": -100,
            "remain_score": 0,
            "commission_score": 0
        }],
        "report_game_info_key": "key001",
        "report_game_info_extras": "extras"
    }
}

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 ""