From 848416af4f03eb3eebb4738b118304b631919f9a Mon Sep 17 00:00:00 2001 From: Administrator Date: Fri, 17 Dec 2021 04:22:13 +0800 Subject: [PATCH] 1 --- kiri-engine/Context.php | 3 +++ 1 file changed, 3 insertions(+) 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; }