diff --git a/kiri-engine/Context.php b/kiri-engine/Context.php index 8860817d..f70aeb63 100644 --- a/kiri-engine/Context.php +++ b/kiri-engine/Context.php @@ -165,6 +165,9 @@ class Context extends BaseContext */ private static function searchByCoroutine($id, $key = null, $coroutineId = null): bool { + if (is_null($coroutineId)) { + $coroutineId = Coroutine::getCid(); + } if (!isset(Coroutine::getContext($coroutineId)[$id])) { return false; }