modify plugin name

This commit is contained in:
2022-02-25 18:33:05 +08:00
parent d67bbd69ca
commit 360347325e
+3 -3
View File
@@ -5,7 +5,7 @@ namespace Kiri;
use Kiri\Abstracts\BaseContext;
use Swoole\Coroutine;
use Kiri;
/**
* Class Context
* @package Yoc\http
@@ -167,7 +167,7 @@ class Context extends BaseContext
}
$value = static::$_contents[$id];
if (!empty($key) && is_array($value)) {
return isset($value[$key]);
return isset($value[$key]) && $value[$key] !== null;
}
return true;
}
@@ -189,7 +189,7 @@ class Context extends BaseContext
}
$value = Coroutine::getContext($coroutineId)[$id];
if ($key !== null && is_array($value)) {
return isset($value[$key]);
return isset($value[$key]) && $value[$key] !== null;
}
return true;
}