fix: resolve traffic reset time generation and refactor reset logic

- Add fix-null mode to ResetTraffic command
- Refactor reset logic for better separation of concerns
- Update migration to reuse fix functionality
This commit is contained in:
xboard
2025-07-19 14:22:01 +08:00
parent 063a10f6bb
commit bcfda44730
6 changed files with 190 additions and 296 deletions
+1
View File
@@ -45,6 +45,7 @@ class XboardUpdate extends Command
Artisan::call("migrate");
$this->info(Artisan::output());
Artisan::call('horizon:terminate');
Artisan::call('reset:traffic', ['--fix-null' => true]);
$updateService = new UpdateService();
$updateService->updateVersionCache();
$themeService = app(ThemeService::class);