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

This commit is contained in:
xboard
2025-07-17 12:34:31 +08:00
parent 10ff5d7b27
commit e2d7b6a5e0
2 changed files with 10 additions and 5 deletions

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());
}
/**