From b1d30da4bc5d72d68286b9a8c6200cfb86b631d1 Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Sun, 27 Mar 2022 21:34:49 +0800 Subject: [PATCH] Re-fix the last no-message-response bug --- src/ZM/ConsoleApplication.php | 2 +- src/ZM/Event/SwooleEvent/OnWorkerStart.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ZM/ConsoleApplication.php b/src/ZM/ConsoleApplication.php index 2ffb481f..2452b8e0 100644 --- a/src/ZM/ConsoleApplication.php +++ b/src/ZM/ConsoleApplication.php @@ -30,7 +30,7 @@ class ConsoleApplication extends Application { public const VERSION_ID = 454; - public const VERSION = '2.7.3'; + public const VERSION = '2.7.5'; private static $obj; diff --git a/src/ZM/Event/SwooleEvent/OnWorkerStart.php b/src/ZM/Event/SwooleEvent/OnWorkerStart.php index 1f8dd59e..e38a529b 100644 --- a/src/ZM/Event/SwooleEvent/OnWorkerStart.php +++ b/src/ZM/Event/SwooleEvent/OnWorkerStart.php @@ -212,10 +212,10 @@ class OnWorkerStart implements SwooleEvent if ($obb_onebot['status']) { Console::debug('OneBot support enabled, listening OneBot event(3).'); $obj = new OnMessageEvent(); + $obj->connect_type = 'qq'; $obj->class = QQBot::class; $obj->method = 'handleByEvent'; $obj->level = $obb_onebot['message_level'] ?? 99; - $obj->rule = 'connectIsQQ()'; EventManager::addEvent(OnMessageEvent::class, $obj); if ($obb_onebot['single_bot_mode']) { LightCacheInside::set('connect', 'conn_fd', -1);