mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-24 17:15:36 +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)) {
|
if (!$token($access_token)) {
|
||||||
$server->close($request->fd);
|
$server->close($request->fd);
|
||||||
Console::warning("Unauthorized access_token: " . $access_token);
|
Console::warning("Unauthorized access_token: " . $access_token);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
} elseif (is_string($token)) {
|
} elseif (is_string($token)) {
|
||||||
if ($access_token !== $token) {
|
if ($access_token !== $token) {
|
||||||
|
|||||||
Reference in New Issue
Block a user