[游戏管理]游戏对局-创建游戏对局service

This commit is contained in:
2026-04-15 14:21:59 +08:00
parent e2097450eb
commit 6573f59531
3 changed files with 174 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
<?php
namespace app\process;
use app\common\service\GamePeriodService;
use Workerman\Timer;
/**
* 定时检查:开启自动创建且无进行中期号时插入新期(全局仅一局)
*/
class GamePeriodAutoTicker
{
public function onWorkerStart(): void
{
Timer::add(15, static function (): void {
GamePeriodService::tickAutoCreate();
});
}
}