diff --git a/src/OneBot/V12/Validator.php b/src/OneBot/V12/Validator.php index 050500c..6a929f7 100644 --- a/src/OneBot/V12/Validator.php +++ b/src/OneBot/V12/Validator.php @@ -112,8 +112,8 @@ public static function validateHttpUrl(string $url): void public static function validateEventParams(array $data) { // 每个 OneBot 事件必须有这几个参数 - if (!isset($data['type'], $data['id'], $data['detail_type'], $data['time'], $data['sub_type'])) { - throw new OneBotException('onebot 12 requires type, id, detail_type, time, sub_type'); + if (!isset($data['type'], $data['id'], $data['detail_type'], $data['sub_type'])) { + throw new OneBotException('onebot 12 requires type, id, detail_type, sub_type'); } // 除元事件(type = meta)外,其他事件必须拥有 self 字段 if ($data['type'] !== 'meta' && !isset($data['self'])) { diff --git a/src/OneBot/global_defines.php b/src/OneBot/global_defines.php index 92ef318..c6a3ce9 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.7'; +const ONEBOT_LIBOB_VERSION = '0.6.8'; const ONEBOT_JSON = 1; const ONEBOT_MSGPACK = 2;