feat: add multiple hooks, pligun schedule support ,add hook:list artisan command

This commit is contained in:
xboard
2025-07-21 13:29:17 +08:00
parent 768e14bdb9
commit c9bab8fb02
16 changed files with 271 additions and 75 deletions
+2
View File
@@ -9,6 +9,7 @@ use Carbon\Carbon;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Cache;
use App\Services\Plugin\HookManager;
/**
* Service for handling traffic reset.
@@ -60,6 +61,7 @@ class TrafficResetService
]);
$this->clearUserCache($user);
HookManager::call('traffic.reset.after', $user);
return true;
});
} catch (\Exception $e) {