1.优化websocket连接
2.修复游戏实施对局显示错误
This commit is contained in:
@@ -10,7 +10,7 @@ use support\Response;
|
||||
use Webman\Http\Request as WebmanRequest;
|
||||
|
||||
/**
|
||||
* 游戏实时对局
|
||||
* Game live control.
|
||||
*/
|
||||
class Live extends Backend
|
||||
{
|
||||
@@ -40,7 +40,7 @@ class Live extends Backend
|
||||
}
|
||||
|
||||
/**
|
||||
* 后台实时对局 WebSocket 配置(管理员联调专用)。
|
||||
* WebSocket config for admin live page.
|
||||
*/
|
||||
public function wsConfig(WebmanRequest $request): Response
|
||||
{
|
||||
@@ -64,8 +64,8 @@ class Live extends Backend
|
||||
|
||||
return $this->success('', [
|
||||
'name' => 'ws.admin.live',
|
||||
'ws_url' => WebSocketConfigHelper::wsUrl(),
|
||||
'connect_tip' => '后台实时对局页将自动订阅管理员全量主题(含本局下注、候选号、开奖与派彩信息)。',
|
||||
'ws_url' => WebSocketConfigHelper::wsUrl($request),
|
||||
'connect_tip' => 'The admin live page auto-subscribes topics for status, draw result and payout events.',
|
||||
'subscribe_topics' => $topics,
|
||||
'sample_messages' => [
|
||||
'{"action":"ping"}',
|
||||
@@ -98,7 +98,7 @@ class Live extends Backend
|
||||
}
|
||||
|
||||
/**
|
||||
* 预约本期开奖号码(倒计时结束后自动开奖,不立即开奖)。
|
||||
* Schedule draw number for current period.
|
||||
*/
|
||||
public function draw(WebmanRequest $request): Response
|
||||
{
|
||||
@@ -126,7 +126,7 @@ class Live extends Backend
|
||||
}
|
||||
|
||||
/**
|
||||
* 游戏运行开关:关闭时禁止下注、派彩结束后不自动开新期,但当局仍自动开奖并结算;重新开启且无进行中局时立即创建新一期。
|
||||
* Runtime switch for game period generation and betting.
|
||||
*/
|
||||
public function runtime(WebmanRequest $request): Response
|
||||
{
|
||||
@@ -147,7 +147,7 @@ class Live extends Backend
|
||||
}
|
||||
|
||||
/**
|
||||
* 作废当前对局(下注/封盘阶段),填写原因后退款待开奖注单并关闭运行开关。
|
||||
* Void current period and refund waiting orders.
|
||||
*/
|
||||
public function voidPeriod(WebmanRequest $request): Response
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user