Refine horse race pool and quick entry

This commit is contained in:
2026-04-11 16:27:04 +08:00
parent b02a789264
commit 37c175289c
6 changed files with 53 additions and 4 deletions
+2
View File
@@ -50,6 +50,7 @@ class OpenHorseRaceJob implements ShouldQueue
$horseCount = (int) ($config['horse_count'] ?? 4);
$minBet = (int) ($config['min_bet'] ?? 100);
$maxBet = (int) ($config['max_bet'] ?? 100000);
$seedPool = (int) ($config['seed_pool'] ?? 0);
$now = now();
$closesAt = $now->copy()->addSeconds($betSeconds);
@@ -63,6 +64,7 @@ class OpenHorseRaceJob implements ShouldQueue
'bet_opens_at' => $now,
'bet_closes_at' => $closesAt,
'horses' => $horses,
'total_pool' => $seedPool,
]);
// 广播开赛事件