add bot context resume procedure

This commit is contained in:
crazywhalecc 2023-01-04 21:24:29 +08:00
parent e526a94520
commit 53ae4b1ed7
No known key found for this signature in database
GPG Key ID: 4B0FFA175E762022

View File

@ -294,6 +294,9 @@ class OneBot12Adapter extends ZMPlugin
return $event->retcode === null || $event->retcode === $resp->retcode;
});
$handler->handleAll($resp);
// 如果有协程,并且该 echo 记录在案的话,就恢复协程
BotContext::tryResume($resp);
}
}