mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-20 23:25:35 +08:00
Update ServerEventHandler.php
-When the token is incorrect, repeated connection events occur in the framework
This commit is contained in:
@@ -417,6 +417,7 @@ class ServerEventHandler
|
||||
if (!$token($access_token)) {
|
||||
$server->close($request->fd);
|
||||
Console::warning("Unauthorized access_token: " . $access_token);
|
||||
return;
|
||||
}
|
||||
} elseif (is_string($token)) {
|
||||
if ($access_token !== $token) {
|
||||
|
||||
Reference in New Issue
Block a user