修复:AI小班长押注未更新押注人数并丢失全局下注池广播的问题
This commit is contained in:
@@ -143,8 +143,13 @@ class AiBaccaratBetJob implements ShouldQueue
|
||||
|
||||
// 更新局次汇总统计
|
||||
$field = 'total_bet_'.$betType;
|
||||
$countField = 'bet_count_'.$betType;
|
||||
$round->increment($field, $amount);
|
||||
$round->increment($countField);
|
||||
$round->increment('bet_count');
|
||||
|
||||
// 广播各选项的最新押注人数(让前台看到 AI 下注的人数增长)
|
||||
event(new \App\Events\BaccaratPoolUpdated($round));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user