feat: 优化开发环境脚本与大厅倒计时调度配置
1. 默认会话、队列和缓存驱动切换为 Redis 2. 拆分 dev、dev:realtime 和 dev:schedule 脚本,支持按需启动实时与调度进程 3. 新增大厅倒计时调度配置开关,支持关闭每秒广播任务
This commit is contained in:
@@ -172,6 +172,8 @@ return Application::configure(basePath: dirname(__DIR__))
|
||||
->everyTenMinutes()
|
||||
->withoutOverlapping();
|
||||
/** @see docs/01-界面文档.md §2.1 `draw.countdown` */
|
||||
$schedule->command('lottery:hall-countdown')->everySecond();
|
||||
if (config('lottery.realtime_hall_countdown', true)) {
|
||||
$schedule->command('lottery:hall-countdown')->everySecond();
|
||||
}
|
||||
})
|
||||
->create();
|
||||
|
||||
Reference in New Issue
Block a user