mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-21 07:35:34 +08:00
fix OnTick context bug
This commit is contained in:
@@ -196,7 +196,8 @@ class EventHandler
|
||||
Console::warning("API 激活事件异常!");
|
||||
return;
|
||||
}
|
||||
$content = ctx()->copy();
|
||||
if (ctx() === null) $content = [];
|
||||
else $content = ctx()->copy();
|
||||
go(function () use ($action, $reply, $connection, $content) {
|
||||
set_coroutine_params($content);
|
||||
context()->setCache("action", $action);
|
||||
|
||||
Reference in New Issue
Block a user