3.11 Demo Launch Lobby (取得试玩进入游戏大厅网址)
Notice (注意事项)
- Bets and results are excluded from all report APIs.
注单与结果不会出现在任何报表 API。
Single Wallet Notice (单一钱包注意事项)
Demo play does not use the single wallet flow. It runs entirely on the platform's internal wallet.
试玩不走单一钱包流程,完全由平台内部钱包运作。
- No callback is sent to the operator — no
get_balance, noplace_bet, nocancel_bet, nosettle.
不会对营运商发送任何回呼 —— 不发get_balance、place_bet、cancel_bet、settle。 - Demo balance is held and settled by the platform, and is not part of the player's real wallet.
试玩余额由平台自行保管与结算,不属于玩家的真实钱包。
Description (说明)
This API call is used to launch the HRG lobby in demo mode.
本功能用于开启 HRG 游戏大厅的试玩模式。
URL (网址)
https://{host}/api/demo_launch_lobby
Request Method
POST
Request Parameters (请求参数)
| Field (栏位) | Type (型态) | Required (必要) | Description (说明) |
|---|---|---|---|
| agentId | String | Y | Agent ID <= 50 characters 代理帐号 |
| lang | String | N | Language fixed 2 characters 语言 default: EN 预设: EN |
| sound | Boolean | N | Enable Sound 启用声音 default: true 预设: true |
| homePageUrl | String | N | Specify the url to return to the operator's home page. <= 3000 characters 指定返回营运商主页的 URL need to set http:// or https:// 需要设置 http:// or https:// |
{
"agentId": "hrgag",
"lang": "EN",
"sound": true,
"homePageUrl": "https://www.google.com"
}
Return Result (返回结果)
| Field (栏位) | Type (型态) | Description (说明) |
|---|---|---|
| code | String | Status Code fixed 4 characters 状态码 |
| data | Object | |
| url | String | Lobby URL 游戏大厅链结 |
{
"code": "0000",
"data": {
"url": "https://{lobby}/?lang=EN&sound=true&isTopWindowRedirect=Y&x=Q2cA1qPvyUo26TzfM_dUgWTV5wDQ1gbAt8AgyEYgFAfOO1iopp1DEEwppfwW92akPCbsbp-Cmk95KXGiNEntz1nG2aRUcGnfex4UlCBTWdhhXchsyws5B1Xwt4QeP10d1t6JCqE77peH5IyHcdu41w=="
}
}
Sample Request For Each Language (各语言请求范例)
SimpleDateFormat xtsFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ");
xtsFormat.setTimeZone(TimeZone.getTimeZone("GMT+8"));
String xts = xtsFormat.format(new Date());
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"agentId\":\"hrgag\",\"lang\":\"EN\",\"sound\":true,\"homePageUrl\":\"https://www.google.com\"}");
Request request = new Request.Builder()
.url("https://{host}/api/demo_launch_lobby")
.method("POST", body)
.addHeader("Authorization", "Basic dGVzdDp0ZXN0")
.addHeader("xts", xts)
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();