1.修复自动创建下一期bug
This commit is contained in:
@@ -15,8 +15,6 @@ class GameLiveTicker
|
||||
GameLiveService::recoverAbnormalPeriodOnStartup();
|
||||
|
||||
Timer::add(1, static function (): void {
|
||||
GameLiveService::finalizePayoutGrace();
|
||||
GameLiveService::tickAutoDraw();
|
||||
GameLiveService::publishSnapshot(null);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -85,9 +85,7 @@ class GameWebSocketServer
|
||||
if (!$hasAdminSubscriber) {
|
||||
return;
|
||||
}
|
||||
// 与 GameLiveTicker 对齐:仅推快照时若 live ticker 未运行会导致倒计时归零但永不开奖
|
||||
GameLiveService::finalizePayoutGrace();
|
||||
GameLiveService::tickAutoDraw();
|
||||
GameLiveService::recoverLiveRoundState();
|
||||
$snapshot = GameLiveService::buildSnapshot(null);
|
||||
$payload = json_encode([
|
||||
'event' => 'admin.live.snapshot',
|
||||
|
||||
Reference in New Issue
Block a user