"JogoDoBicho" Half-Screen Event Description
Used in live broadcast apps to request period results, player betting information, win/loss results, and follow-up betting operations. It facilitates user interaction within the app.
1、Players' betting result notifications
The platform is used to obtain the betting information of each player and then synchronize it to the live broadcast room.
step:op:"Bet",
data parameter description
gameId
number
game ID
curGameId
number
Current game ID (if you are playing game A and push betting information for game B: curGameId = A id, gameId = B id)
name
string
Merchant Player Name
id
string
Merchant Player ID
k
number
Bet Types: 1: Single Animal; 2: Double Animal; 3: Double Animal; 4: Triple Animal; 5: Quadruple Animal; 6: Quintuple Animal; 7: Thousands; 8: Hundreds; 9: Tens; 10: Numbers; 11: Inverted Thousands; 12: Inverted Hundreds; 13: Inverted Tens; 14: Double Tens; 15: Triple Tens;
amount
number
Betting multiples
baseBet
string
Animal ID number to bet on
group
number[]
The winning number to be bet on (1-7)
示例
{
action: 'sendData',
data: {
op:"Bet",
data:{
gameId:1, //game id
curGameId:11, //Current game id
name:"PlayName", //Player Name
id:123456, //Player ID
//Betting kv queue
bets:{[1]:{
amount: 1; //Betting multiples
baseBet: [1,2]; //Bet on animal id numbers
group: [2,5]; //The winning number to be bet on (1-7)
}[]
}
}
}
2、Lottery results notification
Lottery result notification for each draw
step:op:"ShowRound",
data parameter description
gameId
number
game id
roundId
number
Issue
nums
string[]
7 results digital display
示例
{
action: 'sendData',
data: {
op:"Bet",
data:{
gameId:123123 //gameid
roundId:202504090002, //Issue
num:["1234","1234","1234","1234","1234","1234","123"], //7 results digital display
}
}
}
3、Notification of winning amount of winning players
Used to synchronize winning amount of players in the live broadcast room
step:op:"Reward",
data参数说明
id
string
Third-party player ID
name
string
Third-party player Name
userId
number
Gamer user ID
channel
string
Channel Name
gameID
number
Game ID
amount
number
Amount
currency
string
Currency name (USDT, etc., see the currency list for details)
multi
number
multiple
payout
number
bonus
示例
{
action: 'sendData',
data: {
op:"Bet",
data:{
userId:123, // Gamer user ID
id:123, // Third-party player ID
name:"PlayerName", // Third-party player Name
channel:"Channel",// Channel Name
gameID:10001,// Game ID
amount:1,// Amount
currency:"usdt", // Currency name
multi:1,// multiple
payout:1,// bonus
}
}
}
4、Player follow-up investment request
Refer to the demo code:
// Follow-up investment
const FollowUpInvestment = () => {
if(!postData.data.data){
return;
}
iframe.contentWindow.postMessage(JSON.stringify(postData), '*');
}
步骤:op:"Follow",
data参数说明
id
string
Third-party player ID
name
string
Third-party player Name
userId
number
Gamer user ID
gameID
number
Game ID
k
number
Bet Types: 1: Single Animal; 2: Double Animal; 3: Double Animal; 4: Triple Animal; 5: Quadruple Animal; 6: Quintuple Animal; 7: Thousands; 8: Hundreds; 9: Tens; 10: Numbers; 11: Inverted Thousands; 12: Inverted Hundreds; 13: Inverted Tens; 14: Double Tens; 15: Triple Tens;
amount
number
Betting multiples
baseBet
string[]
Currency name (USDT, etc., see the currency list for details)
group
number[]
The winning number to be bet on (1-7)
示例
{
action: 'sendData',
data: {
op:"Follow",
data:{
gameId:1, //game id
curGameId:11, //Current game id
name:"PlayName", //Player Name
id:123456, //Player ID
//Betting kv queue
bets:{[1]:{
amount: 1; //Betting multiples
baseBet: [1,2]; //Bet on animal id numbers
group: [2,5]; //The winning number to be bet on (1-7)
}[]
}
}
}
Last updated