feat(xb): unify DPL and HN backend, themes and registration reports

This commit is contained in:
hellcat committed 2026-10-31 18:58:37 +08:00
1 parent eb630d2caf
commit 1ded40226b
1082 files changed
+159466 -104

No files matched your search

+5
View File
@@ -28,6 +28,11 @@ class Kernel extends ConsoleKernel
protected function schedule(Schedule $schedule): void
{
$schedule->command('telegram:tickets:retry')->everyMinute()->withoutOverlapping();
// Common to all XB instances; each production instance uses its own state and TeleHub caller.
$registrationMutex = 'xb-registration-'.hash('sha256', (string)config('registration_report.project').'|'.(string)config('app.url'));
$schedule->command('report:registrations')->timezone('Asia/Shanghai')->dailyAt('08:00')->onOneServer()->withoutOverlapping(10)->createMutexNameUsing($registrationMutex.'-daily')->when(fn () => config('registration_report.enabled', false));
$schedule->command('report:registrations')->everyFiveMinutes()->onOneServer()->withoutOverlapping(10)->createMutexNameUsing($registrationMutex.'-retry')->when(fn () => config('registration_report.enabled', false));
$schedule->command('payment:health-check')->timezone('Asia/Shanghai')->cron('0 */6 * * *')->withoutOverlapping(30);
Cache::put(CacheKey::get('SCHEDULE_LAST_CHECK_AT', null), time());
// v2board