修复:AI小班长押注未更新押注人数并丢失全局下注池广播的问题

This commit is contained in:
2026-03-28 18:06:48 +08:00
parent 043be04187
commit 7bcb9b126b

View File

@@ -143,8 +143,13 @@ class AiBaccaratBetJob implements ShouldQueue
// 更新局次汇总统计 // 更新局次汇总统计
$field = 'total_bet_'.$betType; $field = 'total_bet_'.$betType;
$countField = 'bet_count_'.$betType;
$round->increment($field, $amount); $round->increment($field, $amount);
$round->increment($countField);
$round->increment('bet_count'); $round->increment('bet_count');
// 广播各选项的最新押注人数(让前台看到 AI 下注的人数增长)
event(new \App\Events\BaccaratPoolUpdated($round));
}); });
} }
} }