From da1d8439c6937e8746fa7591dbcc8e9c37becff4 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Tue, 4 May 2021 02:40:56 +0800 Subject: [PATCH] modify --- HttpServer/Http/Context.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/HttpServer/Http/Context.php b/HttpServer/Http/Context.php index 839162d5..111cfe1a 100644 --- a/HttpServer/Http/Context.php +++ b/HttpServer/Http/Context.php @@ -24,9 +24,9 @@ class Context extends BaseContext */ public static function setContext($id, $context, $key = null): mixed { - if (!static::inCoroutine()) { - return static::setStatic($id, $context, $key); - } +// if (!static::inCoroutine()) { +// return static::setStatic($id, $context, $key); +// } return self::setCoroutine($id, $context, $key); } @@ -106,9 +106,9 @@ class Context extends BaseContext */ public static function getContext($id, $key = null): mixed { - if (!static::inCoroutine()) { - return static::loadByStatic($id, $key); - } +// if (!static::inCoroutine()) { +// return static::loadByStatic($id, $key); +// } return static::loadByContext($id, $key); }