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