feat(baccarat): 实现百家乐实时下注人数统计功能
- 新增 BaccaratPoolUpdated 事件,用于通过 WebSocket 广播实时下注数据更新 - 增加数据库迁移以在 baccarat_rounds 表中添加对应的下注人数统计字段 - 更新 BaccaratRound 模型以及 BaccaratController,支持实时下注统计更新与 WebSocket 事件分发 - 更新前端 chat.js 以及 baccarat-panel.blade.php,利用 Alpine.js 和 Echo 接收事件并动态渲染 "大"、"小"、"豹子" 的实时下注计数
This commit is contained in:
@@ -24,6 +24,7 @@ class BaccaratRound extends Model
|
||||
'bet_opens_at', 'bet_closes_at', 'settled_at',
|
||||
'total_bet_big', 'total_bet_small', 'total_bet_triple',
|
||||
'total_payout', 'bet_count',
|
||||
'bet_count_big', 'bet_count_small', 'bet_count_triple',
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -44,6 +45,9 @@ class BaccaratRound extends Model
|
||||
'total_bet_triple' => 'integer',
|
||||
'total_payout' => 'integer',
|
||||
'bet_count' => 'integer',
|
||||
'bet_count_big' => 'integer',
|
||||
'bet_count_small' => 'integer',
|
||||
'bet_count_triple' => 'integer',
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user