修复作废操作操作错误的局

This commit is contained in:
黎小北
2026-03-25 06:30:12 +08:00
parent a9108d7581
commit 0d420e3a78
2 changed files with 16 additions and 7 deletions
+6 -2
View File
@@ -26,7 +26,7 @@ class StartBetService
$modelRes = NumberTab::startBet($numberTabId);
if ($modelRes['status'] == true){
$numberTabInfo = $modelRes['data'];
$ws->to(SocketSession::HOUSE_NAME)->emit('startBet',[
$responseData = [
'status' => true,
'table_id' => $tableInfo['id'],
'round' => [
@@ -37,7 +37,11 @@ class StartBetService
'in_checkout' => $tableInfo['in_checkout'],
'number_tab_status' => InitTableService::numberTabStatus($numberTabInfo)
]
]);
];
// 广播到 house 房间
$ws->to(SocketSession::HOUSE_NAME)->emit('startBet', $responseData);
// 同时发送给请求者
$ws->emit('startBet', $responseData);
//启动倒计时(该处以后会废弃掉)
CountdownService::countdown($numberTabId,$tableInfo,$modelRes['data']);
}else{