diff --git a/src/OneBot/Driver/Workerman/Socket/WSServerSocket.php b/src/OneBot/Driver/Workerman/Socket/WSServerSocket.php index 1ad8026..c576d97 100644 --- a/src/OneBot/Driver/Workerman/Socket/WSServerSocket.php +++ b/src/OneBot/Driver/Workerman/Socket/WSServerSocket.php @@ -32,7 +32,7 @@ public function send($data, $fd): bool if ($data instanceof FrameInterface) { $data = $data->getData(); } - return $this->connections[$fd]->send($data->getData()); + return $this->connections[$fd]->send($data); } public function sendMultiple($data, ?callable $filter = null): array diff --git a/src/OneBot/global_defines.php b/src/OneBot/global_defines.php index 0473ec9..edee1ea 100644 --- a/src/OneBot/global_defines.php +++ b/src/OneBot/global_defines.php @@ -13,7 +13,7 @@ use ZM\Logger\ConsoleLogger; const ONEBOT_VERSION = '12'; -const ONEBOT_LIBOB_VERSION = '0.6.0'; +const ONEBOT_LIBOB_VERSION = '0.6.1'; const ONEBOT_JSON = 1; const ONEBOT_MSGPACK = 2;