feat(hook): add order.create.after, order.open.before, order.open.after, and protocol.servers.filtered hooks

This commit is contained in:
xboard committed 2025-07-17 12:34:31 +08:00
1 parent 480e6162cb
commit f2fbcc86d8
2 files changed
+10 -5

No files matched your search

+3 -3
View File
@@ -2,6 +2,8 @@
namespace App\Support;
use App\Services\Plugin\HookManager;
abstract class AbstractProtocol
{
/**
@@ -48,9 +50,7 @@ abstract class AbstractProtocol
$this->servers = $servers;
$this->clientName = $clientName;
$this->clientVersion = $clientVersion;
// 服务器过滤逻辑
$this->servers = $this->filterServersByVersion();
$this->servers = HookManager::filter('protocol.servers.filtered', $this->filterServersByVersion());
}
/**