"1mWinGo" 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 results notification
The platform obtains the betting information of each player and then synchronizes it to the live broadcast room.
Step-----— op:"Bet",
Data parameter description
gameId
number
Game ID
curGameId
number
Current game id
userId
number
Player ID
name
string
Merchant Player Name
id
string
Merchant Player ID
amount
number
Bet amount
currency
string
Currency name (USDT, etc., see the currency list for details)
bets.blance
[{blance,currency}...]
Balance Player Balance
Currency Player Balance Currency Type
bets.bets
[{bet,multi}...]
Area number. 1: Points; 2: Color; 3: Big/Small; 4: Odd/Even
Corresponding area index. Points: 0-9; Color: 1-3 (corresponding to red, purple, green); Big/Small: 1 Small, 2 Big/Small; Odd/Even: 1 Odd, 2 Even/Even
Bet: Number of bets
Multi: Multiplier (placeholder data during the betting phase)
Example
{
action: 'sendData',
data:{
op:"Bet",
data:{
gameId: 202,
curGameId: 202,
userId: 123,
name: "lucas",
id: "123456",
amount: 10,
currency: "usdt",
bets: [{
amount: 10,
currency: "usdt",
balance: {
balance: 100,
currency: "usdt"
},
bets: [{
bet: 1,
multi: 0
}, {
bet: 2,
multi: 1
}, ...]
}, ...]
}
}
}
2、Lottery result notification
Lottery result notification
Step-----— op:"ShowRound",
Data parameter description
gameId
number
game id
roundId
number
Issue number
nums
number
The winning number is displayed as any value from 0 to 9
Example
{
action: 'sendData',
data: {
op:"Bet",
data:{
gameId:123123 //gameid
roundId:202504090002, //Issue number
nums:1 //The winning number is displayed as any value from 0 to 9
}
}
}
3、Winning player winning amount notification
Used to synchronize winning amount of players in the live broadcast room
Step: op:"Reward",
data parameter description
id
string
Third-party player ID
name
string
Third-party player name
userId
number
userID
channel
string
Channel Name
gameID
number
game ID
amount
number
Bet Amount
currency
string
Currency name (USDT, etc., see the currency list for details)
multi
number
multiple
payout
number
reward
Example
{
action: 'sendData',
data: {
op:"Reward",
data:{
userId:123,
id:123,
name:"PlayerName",
channel:"Channel",称
gameID:10001,
amount:1,
currency:"usdt",
multi:1,
payout:1
}
}
}
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), '*');
}
Step-----— op:"Follow",
Data parameter description
gameId
number
Game ID
curGameId
number
Current game id
userId
number
Player ID
name
string
Merchant Player Name
id
string
Merchant Player ID
amount
number
Bet amount
currency
string
Currency name (USDT, etc., see the currency list for details)
bets.blance
[{blance,currency}...]
Balance Player Balance
Currency Player Balance Currency Type
bets.bets
[{bet,multi}...]
Area number. 1: Points; 2: Color; 3: Big/Small; 4: Odd/Even
Corresponding area index. Points: 0-9; Color: 1-3 (corresponding to red, purple, green); Big/Small: 1 Small, 2 Big/Small; Odd/Even: 1 Odd, 2 Even/Even
Bet: Number of bets
Multi: Multiplier (placeholder data during the betting phase)
Example
{
action: 'sendData',
data:{
op:"Bet",
data:{
gameId: 202,
curGameId: 202,
userId: 123,
name: "lucas",
id: "123456",
amount: 10,
currency: "usdt",
bets: [{
amount: 10,
currency: "usdt",
balance: {
balance: 100,
currency: "usdt"
},
bets: [{
bet: 1,
multi: 0
}, {
bet: 2,
multi: 1
}, ...]
}, ...]
}
}
}
Last updated