Merge pull request #82 from zhamao-robot/bugfix/not-response

再次修复无法处理消息的 Bug
This commit is contained in:
Jerry Ma 2022-03-27 21:44:10 +08:00 committed by GitHub
commit 294084299e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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);