1.新增游戏实时对局日志,方便排查问题

This commit is contained in:
2026-05-29 14:46:57 +08:00
parent 4bd332a6ff
commit 2a5132d70f
4 changed files with 398 additions and 1 deletions

View File

@@ -3,6 +3,7 @@
namespace app\process;
use app\common\service\GameLiveService;
use app\common\service\GameLiveStuckDiagnostic;
use Workerman\Timer;
/**
@@ -13,6 +14,7 @@ class GameLiveTicker
public function onWorkerStart(): void
{
GameLiveService::recoverAbnormalPeriodOnStartup();
GameLiveStuckDiagnostic::inspectAfterRecovery();
Timer::add(1, static function (): void {
GameLiveService::publishSnapshot(null);