update to 2.2.7 version

fix reply() bug
fix access_token bug
This commit is contained in:
jerry
2021-02-27 16:19:18 +08:00
parent 2902c5e805
commit 957c69bd1e
5 changed files with 30 additions and 6 deletions

View File

@@ -420,7 +420,7 @@ class ServerEventHandler
return;
}
} elseif (is_string($token)) {
if ($access_token !== $token) {
if ($access_token !== $token && $token !== "") {
$server->close($request->fd);
Console::warning("Unauthorized access_token: " . $access_token);
return;